通达信超级趋势源码副图
NOTEXTTY:CONST(CLOSE),DOTLINE,COLORCYAN;
VAR1:=(3*CLOSE+HIGH+LOW+OPEN)/6;
VAR2:=(8*VAR1+7*REF(VAR1,1)+6*REF(VAR1,2)+5*REF(VAR1,3)+4*REF(VAR1,4)+3*REF(VAR1,5)+2*REF(VAR1,6)+REF(VAR1,8))/36;
VAR3:=(LLV(VAR2,2)+LLV(VAR2,4)+LLV(VAR2,6))/3;
NOTEXT短线:VAR2,COLORYELLOW,LINETHICK2;
NOTEXT中线:VAR3,COLORRED,LINETHICK2;
NOTEXT:IF(VAR2=VAR3,VAR3,DRAWNULL),COLORGREEN,LINETHICK2;
VAR4:=IF(CLOSE>OPEN,CLOSE,OPEN);
VAR5:=MEMA(CLOSE,5);
VAR6:=ATAN((VAR5/REF(VAR5,1)-1)*100);
VAR7:=IF(VAR6>0,VAR6,VAR6);
VAR8:=(CLOSE/REF(CLOSE,1)-1)*100;
VAR9:=VAR8<1.5 AND VAR8>(-1.5);
黄金点★:LAST(VAR9,4,1) AND VAR8>2 AND VOL>REF(VOL,1),NODRAW,COLORYELLOW;
DRAWTEXT(黄金点★,LOW/1.01,61),COLORYELLOW;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR20:=VAR10;
VAR21:=VAR11+VAR13+VAR15+VAR17;
VAR22:=VAR12+VAR14+VAR16+VAR18;
NOTEXTB:IF(VAR20>0 OR VAR21>0,LOW*1,DRAWNULL),CROSSDOT,COLORYELLOW,LINETHICK4;
获利筹码:WINNER(CLOSE)*100,NODRAW,COLORMAGENTA;
VAR23:=REF(CLOSE,1);
VAR24:=IF((CLOSE-VAR23)*100/VAR23>=10-0.01*100/VAR23,1,0);
STICKLINE(VAR24,OPEN,CLOSE,2,0),COLORRED;
VAR25:=IF((VAR23-CLOSE)*100/VAR23>=10-0.01*100/VAR23,1,0);
STICKLINE(VAR25,OPEN,CLOSE,2,0),COLORCYAN;
VAR26:=EMA(CLOSE,5);
VAR27:=EMA(CLOSE,40);
VAR28:=CLOSE>VAR26 AND CLOSE>VAR27;
VAR29:=CLOSE<VAR27;
VAR30:=CLOSE<VAR26 AND CLOSE>VAR27;
VAR31:=CLOSE>VAR26 AND CLOSE<VAR27;
STICKLINE(VAR28,CLOSE,OPEN,2,0),COLOR000055;
STICKLINE(VAR28,CLOSE,OPEN,2,0),COLOR000088;
STICKLINE(VAR28,CLOSE,OPEN,1.5,0),COLOR0000AA;
STICKLINE(VAR28,CLOSE,OPEN,1,0),COLOR0000CC;
STICKLINE(VAR28,CLOSE,OPEN,0.5,0),COLOR0000EE;
STICKLINE(VAR28,HIGH,LOW,0,0),COLOR0000EE;
STICKLINE(VAR29,CLOSE,OPEN,2,0),COLORGREEN;
STICKLINE(VAR29,CLOSE,OPEN,2,0),COLORGREEN;
STICKLINE(VAR29,CLOSE,OPEN,1.5,0),COLORGREEN;
STICKLINE(VAR29,CLOSE,OPEN,1,0),COLORGREEN;
STICKLINE(VAR29,CLOSE,OPEN,0.5,0),COLORGREEN;
STICKLINE(VAR29,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(VAR30,OPEN,CLOSE,2,0),COLORBB4400;
STICKLINE(VAR30,OPEN,CLOSE,2,0),COLORCC5500;
STICKLINE(VAR30,OPEN,CLOSE,1.5,0),COLORDD6600;
STICKLINE(VAR30,OPEN,CLOSE,1,0),COLOREE7700;
STICKLINE(VAR30,OPEN,CLOSE,0.5,0),COLORFF8800;
STICKLINE(VAR30,HIGH,LOW,0,0),COLORFF8800;
STICKLINE(VAR31,OPEN,CLOSE,2,0),COLOR0077BB;
STICKLINE(VAR31,OPEN,CLOSE,2,0),COLOR0099CC;
STICKLINE(VAR31,OPEN,CLOSE,1.5,0),COLOR00BBDD;
STICKLINE(VAR31,OPEN,CLOSE,1,0),COLOR00DDEE;
STICKLINE(VAR31,OPEN,CLOSE,0.5,0),COLORYELLOW;
STICKLINE(VAR31,HIGH,LOW,0,0),COLORYELLOW;
VAR32:=EMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5);
VAR33:=(HHV(HIGH,55)-LLV(LOW,55))/EMA(CLOSE-LLV(LOW,55),5);
VAR34:=CROSS(VAR33,VAR32);
VAR35:=REF(VAR33,2)<REF(VAR33,1) AND VAR33<REF(VAR33,1);
VAR36:=COUNT(VAR34,7)>0 AND VAR35;
VAR37:=3*SMA((CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100,5,1)-2*SMA((CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100,5,1);
VAR38:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VAR39:=EMA(VAR37,5);
VAR40:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VAR41:=SMA(VAR40,3,1);
VAR42:=SMA(VAR41,3,1);
VAR43:=3*VAR41-2*VAR42;
VAR44:=EMA(3*VAR41-2*VAR42,4);
VAR45:=SMA(VAR44,5,1);
VAR46:=MA(3*SMA(VAR38,6,1)-2*SMA(SMA(VAR38,5,1),5,1),2);
VAR47:=CROSS(VAR46,0) AND VAR39<56;
VAR48:=IF(VAR36 AND COUNT(VAR36,5)=1,1,0);
VAR49:=VAR47 AND VAR48 OR (CROSS(IF(VAR37<3 AND VAR45<5 AND VAR46<4,1,0),0.5) AND LLV(LOW,34)/HHV(HIGH,144)<0.78);
STICKLINE(VAR49,HIGH,LOW,0,0),COLORRED;
STICKLINE(VAR49,OPEN,CLOSE,(-1),0),COLOR000099;
STICKLINE(VAR49,OPEN,CLOSE,2,0),COLOR0000AB;
STICKLINE(VAR49,OPEN,CLOSE,1,0),COLOR0000DD;
STICKLINE(VAR49,OPEN,CLOSE,0.1,0),COLORRED;
DRAWTEXT(VAR49,CLOSE*0.96,64),COLORRED;
- 上一篇公式:通达信开盘牛1号源码副图
- 下一篇公式:通达信自古泰山多福地,我且独享一壶天(指标 主图/副图/选股贴图 无未来)