以下是通达信呯凡K线源码附图

呯凡K线源码

MA13:WMA(CLOSE,13),COLORWHITE,LINETHICK2;
 MA55:WMA(CLOSE,55),COLORGREEN;
 MA120:WMA(CLOSE,120),COLORYELLOW,LINETHICK2;
 MA238:WMA(CLOSE,238),COLORMAGENTA;
 VAR1:=EMA(CLOSE,2);
 VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
 VAR3:=CROSS(VAR1,VAR2);
 VAR4:=CROSS(VAR2,VAR1);
 DRAWICON(VAR3,LOW*0.97,1);
 DRAWTEXT(VAR3,LOW*0.95,8),COLORYELLOW;
 DRAWICON(VAR4,HIGH*1.03,2);
 DRAWTEXT(VAR4,HIGH*1.08,9),COLORWHITE;
 STICKLINE(VAR1>=VAR2,LOW,HIGH,0.01,0),COLOR0000DD;
 STICKLINE(VAR1>=VAR2,CLOSE,OPEN,2,1),COLORRED;
 STICKLINE(VAR1<VAR2,LOW,HIGH,0.01,0),COLORFFDD00;
 STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,0),COLORCYAN;
 STICKLINE(CROSS(VAR1,VAR2),OPEN,CLOSE,2.5,0),COLORYELLOW;
 STICKLINE(CROSS(VAR2,VAR1),OPEN,CLOSE,2.5,0),COLORWHITE;
 VAR5:=MA(CLOSE,10);
 VAR6:=MA(CLOSE,54);
 VAR7:=(CLOSE-VAR6)/VAR6<0.1;
 VAR8:=(CLOSE-VAR5)/VAR5<0.3;
 VAR9:=(VAR7=1 AND VAR8=1)*0.2;
 VAR10:=(VAR9=0 AND REF(VAR9,1)=0.2 AND REF(COUNT(VAR9=0.2,10)=10,1)=1)*1;
 DRAWTEXT(VAR10,LOW,10),COLORGREEN;
 

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