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
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;