大牛线指标公式
T1:=H>REF(HHV(H,90),1);
T2:=C>O;
T3:=VOL>REF(HHV(VOL,25),1);
T4:=ABS((REF(LLV(L,30),1)-LLV(L,30)))/LLV(L,30)<=0.1;
T5:=ABS((REF(HHV(H,30),1)-HHV(H,30)))/HHV(H,30)<=0.1;
T6:=ABS((REF(HHV(H,30),2)-HHV(H,30)))/HHV(H,30)<=0.1;
T7:=ABS((REF(LLV(H,30),2)-LLV(H,30)))/LLV(H,30)<=0.1;
T8:=BARSCOUNT(C)>90;
牛股选股指标公式
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
短线:SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;
中线:SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED;
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:SMA(RSV3,5,1),COLORYELLOW;
看底:STICKLINE(中线<15,中线,15,6,0),COLORF00FF0;
黄金坑:STICKLINE(短线<20AND中线<20AND长线<20,MAX(长线,MAX(短线,中线)),20,8,0),COLOR00CCFF;
看顶:STICKLINE(中线>80,80,中线,6,0),COLORFFF000;
DRAWICON(CROSS(长线,15),中线,1);
DRAWTEXT(LONGCROSS(中线,20,15),20,'追涨');
DRAWTEXT(CROSS(短线,长线)AND长线<18AND长线>REF(长线,1)ORCROSS(长线,5),20,'千载难逢');
粘合星:DRAWTEXT(ABS(中线-长线)<2AND中线>REF(中线,1),中线,'*');
中线2:=-100*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40));
底:DRAWTEXT(CROSS(中线2,-90)AND(长线<中线AND长线>REF(长线,1)OR短线<20AND中线<20AND长线<20),长线,'底'),COLORFF00FF;
IF(COUNT(CROSS(中线2,-90),12)=3,30,5);
IF(COUNT(CROSS(-5,中线2),12)=3ORCOUNT(CROSS(-15,中线2),6)=3,70,100);
{
选股公式:
VAR1:=MA(CLOSE,27);
VAR2:=(CLOSE-VAR1)/VAR1*100;
VARA:=MA(VAR2,2);
VARB:=BARSLAST(CROSS(-10,VARA)=1);
VARC:=BARSLAST(CROSS(VARA,10)=1);
VARD:=VARA<-10ANDVARB>3;
VARE:=VARA>10ANDVARC>3;
黄金坑:=IF(VARD,VARA,0);
黄金:=REF(黄金坑,1)<0;
黄金坑选股:黄金AND黄金坑=0;
AA:="KDJ.K#WEEK";
BB:="KDJ.D#WEEK";
JC:=CROSS(AA,BB);
BARSLAST(JC)<=7;
A1:=(C-LLV(L,8))/(HHV(H,8)-LLV(L,8))*100;
A2:=SMA(A1,3,1);
A3:=SMA(A2,3,1);
A4:=CROSS(A2,A3);
A5:=A2<20;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8<0,2)ANDCROSS(A8,MA(A8,2));
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MASC:=CROSS(MA2,MA1);
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
VUR0:=(((((2*OPEN)+HIGH)+LOW)+(3*CLOSE))/7);
VUR1:=(CAPITAL*VUR0);
VUR2:=(SMA(AMOUNT,10,1)/1000);
VUR3:=MA((CLOSE*3),5);
VUR4:=((((VUR2*(CLOSE*3))/VUR3)*1)/10);
VUR5:=((((VUR2*(OPEN*3))/VUR3)*1)/10);
VUR6:=((((VUR2*(HIGH*3))/VUR3)*1)/10);
VUR7:=((((VUR2*(LOW*3))/VUR3)*1)/10);
VUR8:=(((((2*VUR5)+VUR6)+VUR7)+(3*VUR4))/7);
VUR9:=EMA(DMA(EMA(VUR4,2),(SUM(VOL,1)*VUR8)),2);
VURA:=EMA((VUR1-VUR9),1);
VU1:=IF((VURA>REF(VURA,1)),((VURA-REF(VURA,1))*15/1000),0);
VU2:=IF((VURA<REF(VURA,1)),((VURA-REF(VURA,1))*15/1000),0);
VU3:=SUM(VU1,15);
VU4:=EMA(VU3,10);
VU5:=REF(VU4,1);
HM1:=ABS(((3.48*CLOSE+HIGH+LOW+O)/5-EMA(CLOSE,20))/EMA(CLOSE,20));
HM2:=DMA(((2.15*CLOSE+LOW+HIGH+O)/5),HM1);
NGX:=EMA(HM2,200)*1.26;
NXX:=EMA(HM2,200)*1.18;
Q1:=MA((L+H+C)/3,5);
YL:=HHV(Q1,60);
A:=IF((YL>REF(YL,1)),YL,DRAWNULL);
AHC1:=CLOSE*VOL;
AHC2:=EMA((EXPMA(AHC1,3)/EXPMA(VOL,3)+EXPMA(AHC1,6)/EXPMA(VOL,6)+EXPMA(AHC1,12)/EXPMA(VOL,12)+EXPMA(AHC1,24)/EXPMA(VOL,24))/4,13);
SG:=1.06*AHC2;
DD:=1.13*AHC2;
MM:=MIN(A,NGX);
MM2:=MIN(SG,NGX);
KK:=MIN(A,NXX);
KK2:=MIN(SG,NXX);
A5:=531;
A6:=1510000;
A7:=A5+A6;
A8:=IF(DATE>A7,0,1);
A9:=REF(CLOSE,1);
A10:=EMA(HHV(HIGH,1),8);
A11:=EMA(CLOSE,8);
A12:=A11<REF(A11,1)ANDCLOSEA15;
A18:=A14A16*A8;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
DD:=VAR8>5;
买入:IF((COUNT(DD,2)=2),-20,0);
MX:=EMA(C,2);
MXA:=EMA(SLOPE(C,21)*20+C,42);
CP:=MA(CLOSE,9);
JD:=MA(CLOSE,18);
加仓:CROSS(CP,JD)ANDMX>=MXA;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:=MA(C,60);
MA120:=MA(C,120);
PDAY1:=BARSLAST(CROSS(MA5,MA60));
PDAY2:=BARSLAST(CROSS(MA10,MA60));
PDAY3:=BARSLAST((HIGH=HHV(HIGH,PDAY2)));
PDAY4:=BARSLAST(CROSS(MA10,MA5));
PDAY5:=BARSLAST(CROSS(MA5,MA10));
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA90:=MA(C,90);
MA120:=MA(C,120);
MA250:=MA(C,250);
VAR1:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);
ABV:=MA(SUM(IF(C>REF(C,1),V,IF(C<REF(C,1),-V,0)),0)/25000,2);
M1:=EMA(ABV,12);
评论(0)