N:=24;
N1:=55;
上轨:EMA(H,N),colorred,DOTLINE;
下轨:EMA(L,N),colorred,DOTLINE;
长上轨:EMA(H,N1),colorgreen,DOTLINE;
长下轨:EMA(L,N1),colorgreen,DOTLINE;
A:=(C-LLV(L,9))/(HHV(H,9)-LLV
(L,9))*100;
K:=SMA(A,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DRAWICON(CROSS(J,0),L*0.99,5),colorred;
AA11:=CROSS(100,J);
DRAWICON(AA11,H*1.01,6);
A1:=上轨;A2:=下轨;
IF(A1>REF(A1,1),A1,DRAWNULL),COLOR0000FF,LINETHICK1;
IF(长上轨>REF(长上轨,1),长上轨,DRAWNULL),colorgreen,LINETHICK1;
IF(A2>REF(A2,1),A2,DRAWNULL),colorred,LINETHICK1;
IF(长下轨>REF(长下轨,1),长下轨,DRAWNULL),colorgreen,LINETHICK1;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=EMA(EMA(EMA(VAR1,4),4),4);
J1:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;
STICKLINE(J1>REF(J1,1),C,O,3,3),COLOR0000FF;
STICKLINE(J1<REF(J1,1),C,O,3,3),COLORFFFF00;
高点:HHV(H,BARSLAST(CROSS(J,0))),NODRAW;
回调:(高点/C-1)*100,NODRAW;
回调10止损:高点*0.9,NODRAW;
202108202132.jpg
|