源码X:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
F:SMA(X,3,1);F2:REF(F,1);
W:SMA(F,3,1);
IF(CROSS(F,W) AND CROSS(W,REF(W,1)) AND O<MA(C,5) AND O<MA(C,18),20,0);
X:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
F:=SMA(X,3,1);
W:=SMA(F,3,1);
买入: IF(CROSS(F,W) AND CROSS(W,REF(W,1)) AND O<MA(C,5) AND O<MA(C,18),20,0);
DRAWICON(CROSS(F,W) AND CROSS(W,REF(W,1)) AND O<MA(C,5) AND O<MA(C,18),21,24);
卖出: IF(CROSS(W,F) AND CROSS(REF(W,1),W) AND O>MA(C,5) AND O>MA(C,18),30,0);
DRAWICON(CROSS(W,F) AND CROSS(REF(W,1),W) AND O>MA(C,5) AND O>MA(C,18),31,27);