飞狐乖离率指标公式

[复制链接]
查看192 | 回复0 | 2021-8-21 12:51:25 | 显示全部楼层 |阅读模式

BIAS:(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS1:(EMA(收盘价,4)-MA(收盘价,38))/MA(收盘价,38)*100;
BIAS2:(EMA(收盘价,7)-MA(收盘价,57))/MA(收盘价,57)*100;
BIAS3:(EMA(收盘价,9)-MA(收盘价,137))/MA(收盘价,137)*100;
BIAS4:(EMA(收盘价,12)-MA(收盘价,254))/MA(收盘价,254)*100,COLORRED;
PARTLINE(BIAS<ref(BIAS,1),BIAS),COLORGRAY;
PARTLINE(BIAS1<ref(BIAS1,1),BIAS1),COLORGRAY;
PARTLINE(BIAS2<ref(BIAS2,1),BIAS2),COLORGRAY;
PARTLINE(BIAS3<ref(BIAS3,1),BIAS3),COLORGRAY;
PARTLINE(BIAS4<ref(BIAS4,1),BIAS4),COLORGRAY;
FILLRGN(BIAS1<ref(BIAS1,1) and BIAS2<ref(BIAS2,1),-10,-5),COLORGRAY;
FILLRGN(BIAS2<ref(BIAS2,1) and BIAS3<ref(BIAS3,1),-10,-5),COLORGRAY;
FILLRGN(BIAS1<ref(BIAS1,1),-10,-5),COLORGRAY;
PARTLINE(BIAS1>ref(BIAS1,1),BIAS1),COLORYELLOW,LINETHICK2;
PARTLINE(BIAS2>ref(BIAS2,1),BIAS2),COLORMAGENTA,LINETHICK2;
PARTLINE(BIAS3>ref(BIAS3,1),BIAS3),COLORGREEN,LINETHICK2;
PARTLINE(BIAS4>ref(BIAS4,1),BIAS4),COLORRED,LINETHICK2;
FILLRGN(BIAS1>ref(BIAS1,1) and BIAS2>ref(BIAS2,1) and BIAS3>ref(BIAS3,1) and BIAS4>ref(BIAS4,1),-10,-5),COLORBROWN;
FILLRGN(BIAS1>ref(BIAS1,1),-10,-5),COLORBROWN;

202108211231.jpg

202108211231.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则