此指标为通用源码,喜欢的朋友就下,不喜欢的请绕过,图中的几条横线作为参考,重点关注D,J二线的金叉死叉,J与FK一定要看是主动上穿还是被动上穿,其性质是完全不一样的。
STICKLINE(c>0,96,96,5,0),COLORRED;
STICKLINE(c>0,72,72,5,0),COLORFF0080;
STICKLINE(c>0,48,48,5,0),COLORWHITE;
STICKLINE(c>0,24,24,5,0),COLORCYAN;
STICKLINE(c>0,6,6,5,0),COLORGRAY;
RSV:=(CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*100;
K:=EMA(ema(RSV,3),3);
D:ema(K,3),COLORYELLOW;
J:K+(k-d)/1.91,COLORMAGENTA;
FK:ema(ref(rsv/1.91,8),3),COLORGREEN;