飞狐波段副图指标
源码
red:=(h+l+c*2)/4;
hys:=llv(l,34);
var3:=hhv(h,34);
波段:ema((red-hys)/(var3-hys)*100,9),colorred,LINETHICK0;
b1:ema(0.667*ref(波段,1)+0.333*波段,2),colorgreen,LINETHICK0;
fillrgn(b1>80,b1,80),colorff00ff;
fillrgn(波段<20,波段,20),color005500;
FILLRGN(波段>b1,波段,b1),colorred;
r1:ema((red-hys)/(var3-hys)*100,31),colorwhite;
r2:ema(r1,5),coloryellow;
PARTLINE(1,80),color0000aa;
PARTLINE(1,20),color00aa00;