同花顺分时布林带指标公式

[复制链接]
查看228 | 回复0 | 2021-8-20 23:22:25 | 显示全部楼层 |阅读模式

tt:=BARSCOUNT(NEW);
CC:=NEW;
zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
zz1:=BETWEEN(NEW/zz,1.05,0.95);
均线:IF(zz1=0,MA(Cc,TT),zz),POINTDOT,COLOR00FFFF,LINETHICK0;
PARTLINE(均线,均线>=Cc,RGB(0,255,0),均线<Cc,RGB(255,0,0)),Linethick2;
上均:均线 + AVEDEV(Cc,tt)*2,COLOR00FF00;
下均:均线 - AVEDEV(Cc,tt)*2,COLORFFff00;
dk:=(上均-下均)*100/均线;
TIPTEXT(CROSS(dk,4) ,PRE,'布林带宽为:'+dk+'%');
VERLINE(dk<=2 AND CROSS(cc,上均),2),Color00ff00;
VERLINE(dk<=2 AND CROSS(下均,Cc),2),colorwhite;
DRAWTEXT(dk>4 AND CROSS(上均,Cc),上均,'★'),colorred;
DRAWTEXT(dk>4 AND CROSS(cc,下均),下均,'▲'),color00ff00;

202108202252.jpg

202108202252.jpg

 

回复

使用道具 举报

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

本版积分规则