RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1);
D:SMA(K,3,1);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),NODRAW;
DEA:=EMA(DIF,9),NODRAW;
MACD:(DIF-DEA)*2,NODRAW;
交叉天数:=MIN(BARSLAST(CROSS(K,D))+1,BARSLAST(CROSS(D,K))+1),NODRAW;
KD开口:K-D,colormagenta,NODRAW;
换手:VOL/CAPITAL*100,NODRAW;
AO:=MACD>0 AND DIF>0;
AA:=MACD<0 AND DIF>0;
BB:=CROSS(DIF,0);
CC:=CROSS(0,DIF);
EE:=K>REF(K,1) AND REF(K,2)>REF(K,1);
FF:=K<REF(K,1) AND REF(K,2)<REF(K,1);
STICKLINE(AO,50,52,4,0),colormagenta;
STICKLINE(AA,50,48,4,0),colorgreen;
STICKLINE(EE,D,K,1,0),colormagenta;
STICKLINE(FF,D,K,1,0),colorgreen;
202108202132.jpg
|