把下面的通达信附图指标(出现红色箭头时)改为选股公式
2020/6/20 18:47:41
公式编写说明:
请老师把下面的通达信附图指标(出现红色箭头时)改为选股公式,谢谢。源码如下:VAR1:=(2*CLOSE+OPEN)/3;VAR2:=(CLOSE-MA(CLOSE,2))/MA(CLOSE,2)*100;VAR3:=(EMA(VAR2,1)+EMA(VAR2,3)+EMA(VAR2,6))/2;A1:=EMA(VAR3,2);A2:=EMA(A1,2);A3:=EMA(A2,2);DRAWICON(CROSS(A1,A3),A3-2,1);DRAWICON(CROSS(A3,A1),A3+2,2);STICKLINE((A1 >= A3),A1,A3,4,1),COLORRED;STICKLINE((A1 <= A3),A1,A3,4,1),COLORGREEN;
公式源码回答:
VAR2:=(CLOSE-MA(CLOSE,2))/MA(CLOSE,2)*100;
VAR3:=(EMA(VAR2,1)+EMA(VAR2,3)+EMA(VAR2,6))/2;
A1:=EMA(VAR3,2);
A2:=EMA(A1,2);
A3:=EMA(A2,2);
CROSS(A1,A3);
投股 票网 www.tou1 8.cn
股市公式下载推荐