同花顺零风险KD副图指标
源码
n:= 89;
m1:= 3;
m2:= 3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),colorwhite,LINETHICK1;
D:SMA(K,M2,1),coloryellow,LINETHICK1;
J:3*K-2*D,colorff00ff,LINETHICK1;
强弱分界线:50,Colorffffcc;-
10,Color00Ffff,LINETHICK2;0,Colorffff33;20,Color00ff00;
80,Color00ff00;100,Colorffff33;110,Color00Ffff,LINETHICK2;
v1:=LLV(LOW,10);
v2:=HHV(H,25);
价位线:=EMA((C-v1)/(v2-v1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),-0,'■'),COLOR33FF33;
DRAWTEXT(CROSS(3.5,价位线),110,'■'),Color0000ff;
Var2q:=REF(LOW,1);
Var3q:=SMA(ABS(LOW-Var2q),3,1)/SMA(MAX(LOW-Var2q,0),3,1)*100;
Var4q:=EMA(IF(CLOSE*1.3,Var3q*10,Var3q/10),3);
Var5q:=LLV(LOW,30);
Var6q:=HHV(Var4q,30);
Var7q:=IF(MA(CLOSE,58),1,0);
Var8q:=EMA(IF(LOW<=Var5q,(Var4q+Var6q*2)/2,0),3)/618*Var7q;
Var9q:=IF(Var8q>100,100,Var8q);
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
AA6:=SMA(AA3,21,8);