飞狐判断强弱顶底的利器-多空KD副图源码
本指标为飞狐源码,如果要用于其它软件,只需将画彩带函数进行改动或者将画彩带函数删除即可。本指标是对前期所发指标顺势擒王的优化。多空指标为变异CCI,用于判断多空;KD线在-100附近特别是-100以下为底部,在100附近特别是100以上为顶部;此外,关注-50,0,50三线。
bc:=(IF(C>(H+L+C)/3,(H*0.618+L*0.382)*0.382,(H*0.382+L*0.618)*0.382)+(O*0.382+C*0.618)*0.618);
多:(bc-MA(BC,42))/(0.06*AVEDEV(BC,42)),COLOR6600FF;
空:-(c-MA(C,42))/(0.06*AVEDEV(C,42)),COLORAAAA00;
FILLRGN(多<空,多,空),COLORFF0080;
FILLRGN(多>空,多,空),COLOR6600FF;
STICKLINE(C>0,100,100,6,0),COLORBLUE;
STICKLINE(C>0,50,50,6,0),COLORMAGENTA;
STICKLINE(C>0,0,0,6,0),COLORYELLOW;
STICKLINE(C>0,-50,-50,6,0),COLORMAGENTA;
STICKLINE(C>0,-100,-100,6,0),COLOR00bb00;
DL:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*240-120;
K:sma(DL,6,1),COLORWHITE,POINTDOT;
D:sma(K,4,1),COLORYELLOW,POINTDOT;
FILLRGN(K>=D,K,D),COLORBROWN;
FILLRGN(K<D,K,D),COLORGRAY;