A:=MA(CLOSE,20);
B:=REF(MA(CLOSE,20),1);
MACD:(A-B)*1000,COLORSTICK;
VAR111:=IF(DATE<1500830 AND DATE>900101,1,0);
VAR222:=LLV(LOW,10);
VAR333:=HHV(HIGH,25);
K1:=(28/10)*VAR111*100;
K2:=(32/10)*VAR111*100;
K3:=(35/10)*VAR111*100;
RSV111:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV111,3,1),COLORFFFFFF;
D:=SMA(K,3,1),COLOR00FFFF;
J:=3*K-2*D,COLORFF00FF;
X:=LLV(J,2)=LLV(J,8);
Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0),COLOR00FF00;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND MACD>0,B*1.05,'短'),COLORFF00FF;
202108202255.png
|