大智慧BOLL大趋势主图指标公式

大智慧BOLL大趋势主图指标公式:
MID:EMA(CLOSE,20),LINETHICK1,colorFFFFFF;

UP1:MID+2*stD(CLOSE,20),LINETHICK1,color0000FF;

LOW1:MID-2*STD(CLOSE,20),LINETHICK1,color00ff00;

UP2:MID+3*STD(CLOSE,20),LINETHICK1,colorFF00FF;

LOW2:MID-3*STD(CLOSE,20),LINETHICK1,color00AA00;

aa:MID;

if(aa>=ref(aa,1),aa,0),LINETHICK2,COLORyellow,circledot;

if(aa<ref(aa,1),aa,0),LINETHICK2,COLORff9900,circledot;

STICKLINE(C>aa,L,H,0.1,1),COLORRED;

STICKLINE(C>aa,C,O,4,1),COLORRED;

STICKLINE(C>aa,C,O,4,1),COLORRED;

STICKLINE(C<aa,C,O,4,1),COLORFFFF00;

STICKLINE(C<aa,C,O,4,1),COLOR00FF00;

STICKLINE(C<aa,L,H,0.1,1),COLOR00FF00;

方向线:ma(c,60),color00ff00,linethick3;