布林多空【副图指标】

{布林多空【副图指标】可以做主图 也可以做副图 参数: N:2 100 11, M:2 100 6}

CV:=CLOSE;

BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,COLORFFFF00,LINETHICK1;

UPR:BBIBOLL+M*STD(BBIBOLL,N)COLOR888888,DOTLINE; {COLOR0099FF}

DWN:BBIBOLL-M*STD(BBIBOLL,N)COLOR888888,DOTLINE; {COLOR00FF99}

多:IF(BBIBOLL>REF(BBIBOLL,1),BBIBOLL,DRAWNULL),COLORRED,LINETHICK1;

空:IF(BBIBOLL<REF(BBIBOLL,1),BBIBOLL,DRAWNULL),COLORGREEN,LINETHICK1;

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

{SAR指标}

持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL)COLORRED;

空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL)COLORGREEN;

BS:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW;

SAR持仓标识:DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20)-0.3,'●')COLOR0099FF;

SAR空仓标识:DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20)+0.3,'●')COLOR33FF00;

{蓝色打底K线}

标识01:=DRAWTEXT(CROSS(DWN,BBIBOLL),DWN,2),COLORWHITE,LINETHICK3;

标识02:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORGREEN;

标识03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORGREEN;

标识04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN;

标识05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORGREEN;

标识06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN;

标识07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORGREEN;

标识08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORGREEN;

标识09:STICKLINE(CLOSE<BBIBOLL AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORGREEN;

标识10:STICKLINE(CLOSE<BBIBOLL AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORGREEN;

标识11:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORGREEN;

标识12:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,OPEN,LOW,0,0),COLORGREEN;

标识13:STICKLINE(CLOSE<BBIBOLL AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORGREEN;

{红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;

{用法注释}

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.12,0,AA01),COLOR00FF99;

(0)

相关推荐