九毛八公式指标
公式模块:
上轨:=WMA(HIGH,30);
下轨:=WMA(LOW,30);
日上轨:"引用WMA.WMA_H#day"(30),COLORBLUE;
日下轨:"引用WMA.WMA_L#day"(30),COLORBLUE;
S:=crOSS(CLOSE,日上轨);
X:=CROSS(日下轨,CLOSE);
WS:=BArslAST(S)+1;
WX:=BARSLAST(X)+1;
SS:=CROSS(SUM(S,WX),0.5);
XX:=CROSS(SUM(X,WS),0.5);
DRAWICON(SS,LOW*0.995,4);
DRAWTEXT(SS,LOW,' /n /n买入'),ALIGN1,colorFFFFFF;
DRAWICON(XX,HIGH*1.01,5);
DRAWTEXT(XX,HIGH*1.02,'卖出'),ALIGN1,colorFFFFFF;
谢谢老师,非常感谢 上轨:=WMA(HIGH,30);
下轨:=WMA(LOW,30);
日上轨:="引用WMA.WMA_H#day"(30),COLORBLUE;
日下轨:="引用WMA.WMA_L#day"(30),COLORBLUE;
S:=CROSS(CLOSE,日上轨);
X:=CROSS(日下轨,CLOSE);
WS:=BARSLAST(S)+1;
WX:=BARSLAST(X)+1;
买入:CROSS(SUM(S,WX),0.5);