飞狐变异KDJ副图源码
飞狐版本的变异KDJ,与通用版本不同之处是函数EMA有变化,二是增加了一条加速线即JS
源码
DRAWGBK(DATE>900101,COLORRGB(110,95,0),COLORRGB(0,20,0),1);
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(wma(RSV,3),3);
D:wma(K,3),COLORYELLOW;
J:K+(k-d)/1.91,COLORMAGENTA;
FK:wma(ref(rsv/1.91,8),3),COLORGREEN;
JS:96-fk,LINEDOT,COLOR00CCCC;