大智慧庄散线指标公式
input:m(60,3,120),n(30,3,120);
散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORGREEN;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
控筹线:EMA(J,6),COLORRED;
指导线:60,COLORRED;
Var2:=REF(LOW,1);
Var3:=SMA(Abs(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100;
Var4:=EMA(IF(CLOSE*1.3,Var3*10,Var3/10),3);
Var5:=LLV(LOW,30);
Var6:=HHV(Var4,30);
Var7:=IF(MA(CLOSE,58),1,0);
DRAWTEXTABS(5,5,'指标网 www.zhibiaow.com'),linethick1,COLOR00EEff;
Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7;
Var9:=IF(Var8>100,100,Var8);
stICKLINE(Var9>-150,0,Var9,6,1);
LC:=REF(CLOSE,1);
rsi:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(crOSS(FF,MA15),(LOW * 0.99),'底背离'),Color0000FF;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'●顶背离'),Color00FFFF;