当前位置:首页 > 通达信 > 正文

【通达信源码分享】精品指标公式-做波段指标源码

2022-10-27未知 编 辑:掌上指标


公式源码:
 
WY1001:=(2*CLOSE+HIGH+LOW)/4;
 
 WY1002:=EMA(WY1001,4);
 
 WY1003:=EMA(WY1002,4);
 
 WY1004:=EMA(WY1003,4);
 
 XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
 
 STICKLINE(XYS0>=0,XYS0,0,3,0),COLORRED;
 
 STICKLINE(XYS0<0,XYS0,0,3,0),COLORGREEN;
 
 PJGJ:=AMOUNT/VOL/100;
 
 SSRYDJX:=MA(PJGJ,13);
 
 SSRCJL:=EMA(VOL,13);
 
 SSRCJE:=EMA(AMOUNT,13);
 
 SSRCBJX:=SSRCJE/SSRCJL/100;
 
 CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
 
 XYSHSL:=EMA(VOL/CAPITAL*100,13);
 
 STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,3 ,0 ),COLORGREEN;
 
 STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,3 ,0 ),COLORYELLOW;
 
 STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,3 ,0 ),COLORCYAN;
 
 STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,3,0 ),COLORBLUE;
 
 XYS1:MA(XYS0,2);
 
 XYS2:MA(XYS0,1);
大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标