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;