多空布林【主图指标】

{多空布林【主图指标】布林带 参数N1:最小2,最大100,缺省26.  参数M1:最小2,最大100,缺省2.}

{布林通道}

背景色:DRAWGBK(C>0, RGB(0,0,0),RGB(0,0,10'该数值可以调整'),0,0,0);{浅色背景};

{个股持仓成本线画线——画线——将“123标价线”移动至成本线位置即可。}

XG:H=6.42,NODRAW;

CV:=CLOSE;
    BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,COLORFFFF00;
    UPR:BBIBOLL+M1*STD(BBIBOLL,N1)COLOR888888,DOTLINE; {COLOR0099FF}   
    DWN:BBIBOLL-M1*STD(BBIBOLL,N1)COLOR00FF00; {COLOR00FF99}
    上轨:BBIBOLL+M1*STD(BBIBOLL,N1)COLOR0099FF,LINETHICK2; {COLORFFFF00}
    下轨:BBIBOLL-M1*STD(BBIBOLL,N1)COLOR0000FF,LINETHICK2; {COLOR0000FF}
    中轨多头:IF(BBIBOLL>REF(BBIBOLL,1)OR C>(BBIBOLL),BBIBOLL,DRAWNULL)COLORMAGENTA,LINETHICK2;
    中轨空头:IF(BBIBOLL<REF(BBIBOLL,1)OR C<(BBIBOLL),BBIBOLL,DRAWNULL)COLORGREEN,LINETHICK2;

{股价标识}

现价:=CLOSE,NODRAW;
    警戒线0:=现价;
    数字0:DRAWNUMBER(CURRBARSCOUNT=1,L-0.15,REF(警戒线0,0));

关注:=DRAWICON(CROSS(C,BBIBOLL),L-0.2,42)COLORRED;

支撑均线20:=LLV(HIGH,20),DOTLINE,COLORFFCC00;
    标注:DRAWICON(FILTERX(CROSS(C,支撑均线20),10),L-0.3,1);

{SAR指标}

持仓:IF(CLOSE>=SAR(10,2,20),SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLOR0066FF,{COLOR0000FF};
    空仓:IF(CLOSE<=SAR(10,2,20),SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORCYAN,{COLORFF0033};
    标识:STICKLINE(C/REF(C,1)>1.095,O,C,1.2,0),COLOR0000FF;

{五彩K线}

{蓝色打底K线}

标识01:=DRAWTEXT(CROSS(DWN,BBIBOLL),DWN,2),COLORWHITE,LINETHICK3;
    标识02:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORLICYAN;
    标识03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORLICYAN;
    标识04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORLICYAN;
    标识05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORLICYAN;
    标识06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORLICYAN;
    标识07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORLICYAN;
    标识08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORLICYAN;
    标识09:STICKLINE(CLOSE<BBIBOLL AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORLICYAN;
    标识10:STICKLINE(CLOSE<BBIBOLL AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORLICYAN;
    标识11:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORLICYAN;
    标识12:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,OPEN,LOW,0,0),COLORLICYAN;
    标识13:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORLICYAN;

{红K线系列}

标识14:STICKLINE(CLOSE>BBIBOLL AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;
    标识15:STICKLINE(CLOSE>BBIBOLL AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;
    标识16:STICKLINE(CLOSE>BBIBOLL AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;
    标识17:STICKLINE(CLOSE>BBIBOLL AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;
    标识18:STICKLINE(CLOSE>BBIBOLL AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;
    标识19:STICKLINE(CLOSE>BBIBOLL AND BBIBOLL>REF(BBIBOLL,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;
    标识22:STICKLINE(CLOSE>BBIBOLL AND BBIBOLL>REF(BBIBOLL,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;
    标识23:STICKLINE(CLOSE>BBIBOLL AND BBIBOLL>REF(BBIBOLL,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;
    标识24:STICKLINE(CLOSE>BBIBOLL AND BBIBOLL>REF(BBIBOLL,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;

{所属板块}

附加1:DRAWTEXT_FIX(1,0.02,0.19,0,'所属板块:'),COLORFF6000;
    附加2:DRAWTEXT_FIX(1,0.07,0.19,0,HYBLOCK),COLORRED;
    附加3:DRAWTEXT_FIX(1,0.12,0.19,0,DYBLOCK),COLORYELLOW;
   
    量:=VOL;

启动_05:=EMA(量,5);
    洗盘_35:=EMA(量,35);
    异动_135:=EMA(量,135);
    量能放大:=REF(启动_05,0)>REF(异动_135,0);

标识001:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS(C,BBIBOLL),0.91,0.03,0,'股价上穿中轨啦 ★★★')COLORRED;
    标识002:=DRAWICON(CROSS(C,BBIBOLL)AND 量能放大,L-0.1,42);
    {用法注释}

D00:=1;
    AA00:=DRAWGBK('     ★★★ 股价上穿中轨并在其中轨上方运行视为强势,反之,视为弱势。上穿中轨买入,跌破中轨止损。','.','.','.','.','.');
    AA00图标:DRAWTEXT_FIX(D00=1,0.01,0.03,0,AA00),COLOR3300FF;
    D01:=1;
    AA01:=DRAWGBK('     ★★★ 建议——最好是使用周线操盘。因为,使用周线操盘比使用日线操盘,其胜算率会更高。','.','.','.','.','.');
    AA01图标:DRAWTEXT_FIX(D01=1,0.01,0.11,0,AA01),COLOR00FF99;

(0)

相关推荐