以下是通达信买卖决策源码副图贴图

A1:=EMA(C,12)-EMA(C,25);
 A2:=EMA(A1,6);
获利回吐:(A2>=0)*A2,COLORWHITE,LINETHICK0;
空头回补:(A2<0)*A2,COLORYELLOW,LINETHICK0;
坚绝做空:(A1<0)*A1,COLORGREEN,LINETHICK0;
买入持股:(A1>=0)*A1,COLORRED,LINETHICK0;
 STICKLINE(A2>=0,A2,0,3.2,0),COLOR555555;
 STICKLINE(A2>=0,A2,0,2.9,0),COLOR777777;
 STICKLINE(A2>=0,A2,0,2.4,0),COLOR999999;
 STICKLINE(A2>=0,A2,0,1.8,0),COLORBBBBBB;
 STICKLINE(A2>=0,A2,0,1.1,0),COLORDDDDDD;
 STICKLINE(A2>=0,A2,0,0.3,0),COLORFFFFFF;
 STICKLINE(A2<0,A2,0,3.2,0),COLORFF5500;
 STICKLINE(A2<0,A2,0,2.9,0),COLORFF7700;
 STICKLINE(A2<0,A2,0,2.4,0),COLORFF9900;
 STICKLINE(A2<0,A2,0,1.8,0),COLORFFBB00;
 STICKLINE(A2<0,A2,0,1.1,0),COLORFFDD00;
 STICKLINE(A2<0,A2,0,0.3,0),COLORFFFF00;
 STICKLINE(A1<0,A1,0,3.2,0),COLORCC0066;
 STICKLINE(A1<0,A1,0,2.9,0),COLOREE0066;
 STICKLINE(A1<0,A1,0,2.4,0),COLORFF0066;
 STICKLINE(A1<0,A1,0,1.8,0),COLORFF2266;
 STICKLINE(A1<0,A1,0,1.1,0),COLORFF4466;
 STICKLINE(A1<0,A1,0,0.3,0),COLORFF6666;
 STICKLINE(A1>=0,A1,0,3.2,0),COLOR000055;
 STICKLINE(A1>=0,A1,0,2.9,0),COLOR000077;
 STICKLINE(A1>=0,A1,0,2.4,0),COLOR000099;
 STICKLINE(A1>=0,A1,0,1.8,0),COLOR0000BB;
 STICKLINE(A1>=0,A1,0,1.1,0),COLOR0000DD;
 STICKLINE(A1>=0,A1,0,0.3,0),COLOR0000FF;

 SAR持币:IF(SAR(10,2,20)>=H,0,DRAWNULL),CIRCLEDOT,COLORGREEN;
 SAR持股:IF(SAR(10,2,20)<=L,0,DRAWNULL),CIRCLEDOT,COLOR000099;
 

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