飞狐多空KD指标公式
2020/2/14 18:37:01
多空指标为变异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;
投 股票网 www .tou18.cn
股市公式下载推荐