RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
WR1:-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))+100;
WR2:-100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1))+100;
J:3*K-2*D;
Q:CONST(60)COLORBROWN;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2,COLORSTICK;
SS:=J>50 AND J<REF(J,1) AND MACD<REF(MACD,1);
DRAWICON(SS,80,2 );
YY:=J>REF(J,1) AND MACD>REF(MACD,1);
DRAWICON(YY,20,1 );
A:=HHV(MACD,10)-LLV(MACD,10)>9;
A1:=COUNT(A,6)=1;
A2:=CROSS(DIF,DEA);
A3:=A1 OR A2;
DRAWICON(A3,5,11 );
|