RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
k=SMA(RSV,3,1);
d=SMA(k,3,1);
J:(3*k-2*d),nodraw;
MD:=2*(K-D),nodraw;
DF : EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
DA : EMA(DF,9),colorliblue;
MACD:2*(DF-DA),nodraw;
STICKLINE(MACD<0 ,0,MACD,8,1),colorligreen;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND MD>=REF(MD,1),0,MACD,8,0),colorred;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND MD<=REF(MD,1),0,MACD,8,1),colorred;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) ,0,MACD,8,0),colorliblue;
STICKLINE(j<20 ,0,MACD,8,0),colorgreen;
换手率:VOL/CAPITAL*100,colorgreen,nodraw;
b:=(ZDMRJE[-1]+BDMRJE[-1]);
s:=(ZDMCJE[-1]+BDMCJE[-1]);
r:=(b-s)/100000000;
大单金额亿元:r,nodraw,coloryellow;
STICKLINE( r>0.1 ,0,MACD,8,0),colormagenta;
STICKLINE(j>80 AND j<98 ,MACD,MACD,8,0),colorwhite,linethick2;
STICKLINE(j>=98 ,MACD,MACD,8,0),colorgreen,linethick2;
量比1:=V/REF(MA(V,5),1),coloryellow;
量比2:=V/MA(V,35);
STICKLINE(量比1<0.5 AND 量比2<0.5 AND ABS(C/O)>1 ,-MACD,MACD,4,0),colorred;