以下是通达信胜者螺旋副图指标源码

VAR1:=MA(CLOSE,5);
 VAR2:=MA(CLOSE,10);
 VAR3:=MA(CLOSE,20);
 VAR4:=MA(CLOSE,30);
 VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
 VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*5;
 VAR7:=EMA(VAR6,8);
注意: STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR7,VAR6,0,3,0);
转强: STICKLINE(VAR7>REF(VAR7,1) AND VAR6<0 AND VAR6>VAR7,VAR7,0,3,0),COLORYELLOW;
买点: STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR7<0,VAR6,VAR7,3,0);
 DRAWICON(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR7<0,30),{-140}-0.1,1);
 DRAWTEXT(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR7<0,30),{-140}-0.1,’买点’),COLORRED;
持股: STICKLINE(VAR7>REF(VAR7,1) AND VAR7>0,VAR6,0,3,0),COLORRED;
观望: STICKLINE(VAR6<REF(VAR6,1) AND VAR7>REF(VAR7,1) AND VAR6>0,VAR6,VAR7,3,0);
持币: STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR7,VAR6,VAR7,3,1),COLORCYAN;
 0,COLORBLUE,LINETHICK2;

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