通达信炫酷布林BOLL布林线运用技巧指标公式:
BOLL0:=MA(CLOSE,10);
UPPER0:=BOLL0+2*STD(CLOSE,10);
LOWER0:=BOLL0-2*STD(CLOSE,10);
DRAWBAND(UPPER0,RGB(100,200,100),BOLL0,0);
DRAWBAND(BOLL0,RGB(50,150,50),LOWER0,0);
BOLL1:=MA(CLOSE,20);
UPPER1:=BOLL1+2*STD(CLOSE,20);
LOWER1:=BOLL1-2*STD(CLOSE,20);
DRAWBAND(UPPER1,RGB(255,220,0),BOLL1,0);
DRAWBAND(BOLL1,RGB(255,160,0),LOWER1,0);
BOLL2:=MA(CLOSE,30);
UPPER2:=BOLL2+2*STD(CLOSE,30);
LOWER2:=BOLL2-2*STD(CLOSE,30);
DRAWBAND(UPPER2,RGB(0,160,255),BOLL2,0);
DRAWBAND(BOLL2,RGB(0,160,255),LOWER2,0);
BOLL3:=MA(CLOSE,60);
UPPER3:=BOLL3+2*STD(CLOSE,60);
LOWER3:=BOLL3-2*STD(CLOSE,60);
DRAWBAND(UPPER3,RGB(200,160,255),BOLL3,0);
DRAWBAND(BOLL3,RGB(150,100,255),LOWER3,0);
BOLL4:=MA(CLOSE,120);
UPPER4:=BOLL4+2*STD(CLOSE,120);
LOWER4:=BOLL4-2*STD(CLOSE,120);
DRAWBAND(UPPER4,RGB(0,100,255),BOLL4,0);
DRAWBAND(BOLL4,RGB(0,100,255),LOWER4,0);
UMID:=(BOLL4+UPPER4)/2;
LMID:=(BOLL4+LOWER4)/2;
DRAWBAND(UMID,RGB(0,170,255),BOLL4,0);
DRAWBAND(BOLL4,RGB(0,140,255),LMID,0);
DIF1:=EMA(CLOSE,10)-EMA(CLOSE,120);
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*2;
STICKLINE(MACD1>0,BOLL4,BOLL4+MACD1,0.35,0),COLORRED;
STICKLINE(MACD1<0,BOLL4,BOLL4+MACD1,0.35,0),COLORBLUE;
MA120:BOLL4,COLORRED,LINETHICK5;
IF(BOLL4<REF(BOLL4,1),BOLL4,DRAWNULL),COLORBLUE,LINETHICK5;
MA60:BOLL3,COLORRED,LINETHICK4;
IF(BOLL3<REF(BOLL3,1),BOLL3,DRAWNULL),COLORBLUE,LINETHICK4;
MA30:BOLL2,COLORRED,LINETHICK3;
IF(BOLL2<REF(BOLL2,1),BOLL2,DRAWNULL),COLORBLUE,LINETHICK3;
MA20:BOLL1,COLORRED,LINETHICK2;
IF(BOLL1<REF(BOLL1,1),BOLL1,DRAWNULL),COLORBLUE,LINETHICK2;
MA10:BOLL0,COLORRED,LINETHICK1;
IF(BOLL0<REF(BOLL0,1),BOLL0,DRAWNULL),COLORBLUE,LINETHICK1;
DRAWKLINE(H,O,L,C);
通达信炫酷布林BOLL布林线运用技巧指标公式