以下是通达信霸占大牛股主图指标公式源码和使用说明

通达信霸占大牛股主图指标公式源码:

   VAR13:=IF(YEAR>=2018ANDMONTH>=11ANDDAY>=1,0,1);

   AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;

   BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;

   CC:=EMA(AA,2);

   DD:=EMA(BB,5);

   VAR14:=MAX(EMA(AA,2)-EMA(BB,5),0)*1.2;

   VAR15:=EMA(VAR14,5);

   SS:=EMA(VAR15,2);

   风险系数:=(VAR15-SS)/10*VAR13;

   波浪系数:VAR15*VAR13,STICK,COLORFF00FF;

   A10:=波浪系数,LINETHICK1;

   B:MA(A10,3),COLORYELLOW,LINETHICK2;

   B2:=MA(B,2)*2-B;

   STICKLINE(B>B2,1.5*B,B2,3,0),COLOR0000FF;

   STICKLINE(B<B2,1.5*B,B2,3,0),COLORBLUE;

   STICKLINE(VAR15>REF(VAR15,1)ANDVAR13,VAR15,0,2,0),COLOR0099FF;

   STICKLINE(VAR15>REF(VAR15,1)ANDVAR13,VAR15,SS,3.5,0),COLORYELLOW;

   STICKLINE(VAR15<REF(VAR15,1)ANDVAR13,0,VAR15,2,0),COLORGREEN;

   STICKLINE(VAR15<REF(VAR15,1)ANDVAR13,VAR15,SS,3.5,0),COLORFFCC33;

   升跌:=EMA((C/MA((2*C+H+L)/4,8)-1)*100,3);0;

   jjx:=Abs(OPEN+HIGH+LOW+CLOSE)/4;

   生命:MA(jjx,5),ColorYELLOW;

   VL:=REF(LOW,1);VH:=REF(H,1);

   Var1:=SMA(ABS(H-Vh),13,1)/SMA(MAX(H-Vh,0),13,1)*100;

   Var2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;

   Var3:=MA(Var1,13);

   Var4:=MA(Var2,13);

   Var5:=LLV(L,34);

   Var6:=HHV(H,34);

   Var7:=EMA(IF(H>=Var6,Var3,0),3);

   Var8:=EMA(IF(L<=Var5,Var4,0),3);

   var9:=(SMA(SMA((((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54)))*100),7,1),5,1));

   var10:=((SMA(((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100),7,1))*16.18)-(var9*10.9);

   Var11:=FILTER(IF(var10<=var9ANDVar8>REF(Var8,1),Var8*8,0),55);

   Var21:=LLV(LOW,60);

   Var31:=HHV(HIGH,60);

   Var41:=EMA((CLOSE-Var21)/(Var31-Var21)*100,13);

   Var51:=EMA(0.667*REF(Var41,1)+0.333*Var41,21);

   varL2:=FILTER(crOSS(Var51,Var41)ANDVar41>84,13);

   {k线}

   STICKLINE(CLOSE>OPENorCLOSE=OPENandCLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;

   STICKLINE(CLOSE>OPENorCLOSE=OPENandCLOSE>REF(CLOSE,1),OPEN,CLOSE,4,0),colorred;

   STICKLINE(CLOSE<OPENorCLOSE=OPENandCLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),color00ff00;

   STICKLINE(CLOSE<OPENorCLOSE=OPENandCLOSE<=REF(CLOSE,1),OPEN,CLOSE,4,0),color00ff00;

   STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0,0),COLOR00FF00;

   STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),COLOR008800;

   STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.5,0),COLOR009900;

   STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLOR00AA00;

   STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.5,0),COLOR00BB00;

   STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLOR00CC00;

   STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLOR00DD00;

   STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLOR00EE00;

   STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLOR00FF00;

   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0),COLORFFBBFF;

   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),COLORFF00FF;

   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.5,0),COLORFF22FF;

   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLORFF44FF;

   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0),COLORFF66FF;

   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLORFF88FF;

   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLORFF99FF;

   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLORFFAAFF;

   STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORFFBBFF;

   持股线:MA(C,26),LINETHICK2,COLOR6600FF;

   DRAWTEXT(var11,L*0.98,’锁定’),ColorFFFF00;

   STICKLINE(var11,H,L,1,1),COLORRED;

   STICKLINE(var11,OPEN,CLOSE,4.5,0),COLOR000099;

   STICKLINE(var11,OPEN,CLOSE,3,0),COLOR0000BB;

   STICKLINE(var11,OPEN,CLOSE,2,0),COLOR0000FF;

   DRAWTEXT(varl2,H*1.04,’逃跑’),ColorYELLOW;

   STICKLINE(varl2,H,L,1,1),COLORYELLOW;

   STICKLINE(varl2,OPEN,CLOSE,4.5,0),COLOR00CCCC;

   STICKLINE(varl2,OPEN,CLOSE,3,0),COLOR33FFCC;

   STICKLINE(varl2,OPEN,CLOSE,2,0),COLOR00FFFF;

   AVR1:=Ema(CLOSE,10);

   Avr2:=(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36;

   AVR3:=MA(CLOSE,9);

   AVR4:=MA(CLOSE,20);

   AVR5:=EMA(CLOSE,2);

   AVR6:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);

   AVR7:=EMA(CLOSE,3);

   AVR8:=EMA(CLOSE,21);

   AVR9:=(HHV(HIGH,20)-(2*ATR));

   AVRA:=crOSS(CLOSE,REF(HHV(HIGH,55),1));

   AVRB:=BArslAst(AVRA);

   AVRC:=CROSS(MIN(MA(CLOSE,13),AVR9),CLOSE);

   AVRD:=BARSLAST(AVRC);

   AVRE:=((AVRB=0)AND(REF(AVRD,1)<REF(AVRB,1)));

   AVRF:=BARSLAST(AVRE);

   AVRG:=((((AVRA=1)AND(AVRF0))AND(COUNT(AVRA,AVRD)<3));

   五线选股:IF(CROSS(AVR1,AVR4)ANDCROSS(AVR3,AVR4)ANDCROSS(AVR4,AVR2),1,0);

   底背离选股:IF(CROSS(AVR7,AVR8),1,0);

   跟进加码:IF(AVRE=1ORAVRG=1,1,0);

   跟进快买:IF(CROSS(AVR5,AVR6),1,0);

通达信霸占大牛股主图指标公式截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。