分享

布林转折【主图指标】带选股公式

 知博陋室 2023-10-20 发布于湖北

    {布林转折【主图指标】本博目前所使用的主图公式。}

    ★布林转折:MA(C,20),COLORADDEEC,NODRAW; 

    布林200:MA(BBIBOLL,200),COLORRED,NODRAW;   

    年线:MA(CLOSE,250)COLORCYAN,NODRAW; 

    布林线:MA(CLOSE,20),COLORADDEEC,NODRAW;

    上轨:=BOLL+2*STD(CLOSE,20),COLOR4F3B3A,NODRAW;

    下轨:=BOLL-2*STD(CLOSE,20),COLOR4F3B3A,NODRAW;

    上通道:=BOLL+2.08*STD(CLOSE,20),COLOR4F3B3A,NODRAW;

    下通道:=BOLL-2.08*STD(CLOSE,20),COLOR4F3B3A,NODRAW;

    上轨通线:=BOLL+2.1*STD(CLOSE,20),COLOR4F3B3A,NODRAW;

    下轨通线:=BOLL-2.1*STD(CLOSE,20),COLOR4F3B3A,NODRAW;

    色谱通道上:DRAWBAND(上轨,RGB(23,124,176),上通道,RGB(23,124,176));   {DRAWBAND(上轨,RGB(62,86,90),上通道,RGB(62,86,90))}

    色谱通道下:DRAWBAND(下轨,RGB(23,124,176),下通道,RGB(23,124,176));   {DRAWBAND(下轨,RGB(62,86,90),下通道,RGB(62,86,90))}

    转1:=IF(C>REF(EXPMEMA(H,5),1),1,0);

    转2:=IF(C<REF(EXPMEMA(L,5),1),-1,0);

    转3:=转1+转2;

    转4:=IF(转3=0,REF(转3,BARSLAST(NOT(转3=0))),转3);

    转折线:IF(转4=-1,MA(HIGH,5),MA(LOW,5)),COLORRED,NODRAW; {COLOR988A74 COLOR23DDC9}

    顾比均线3_15:EMA(C,3),COLORB07C17,NODRAW;  {靛青 短线}

    顾比均线30_60:EMA(C,30),COLORBROWN,NODRAW; {棕色 中线}

    顾比均线3:EMA(C,3),COLOR444444;                                    

    顾比均线5:EMA(C,5),COLOR444444;

    顾比均线8:EMA(C,8),COLOR444444;

    顾比均线10:EMA(C,10),COLOR444444;

    顾比均线12:EMA(C,12),COLOR444444;

    顾比均线15:EMA(C,15),COLOR444444;

    IF(顾比均线3>REF(顾比均线3,1),顾比均线3,DRAWNULL),COLOR444444;     

    IF(顾比均线5>REF(顾比均线5,1),顾比均线5,DRAWNULL),COLOR444444;

    IF(顾比均线8>REF(顾比均线8,1),顾比均线8,DRAWNULL),COLOR444444;

    IF(顾比均线10>REF(顾比均线10,1),顾比均线10,DRAWNULL),COLOR444444;

    IF(顾比均线12>REF(顾比均线12,1),顾比均线12,DRAWNULL),COLOR444444;

    IF(顾比均线15>REF(顾比均线15,1),顾比均线15,DRAWNULL),COLOR444444;

    顾比均线30:EMA(C,30),COLOR333333;                                 

    顾比均线35:EMA(C,35),COLOR333333;

    顾比均线40:EMA(C,40),COLOR333333;

    顾比均线45:EMA(C,45),COLOR333333;

    顾比均线50:EMA(C,50),COLOR333333;

    顾比均线60:EMA(C,60),COLOR333333;

    IF(顾比均线30>REF(顾比均线30,1),顾比均线30,DRAWNULL),COLOR333333;  

    IF(顾比均线35>REF(顾比均线35,1),顾比均线35,DRAWNULL),COLOR333333;

    IF(顾比均线40>REF(顾比均线40,1),顾比均线40,DRAWNULL),COLOR333333;

    IF(顾比均线45>REF(顾比均线45,1),顾比均线45,DRAWNULL),COLOR333333;

    IF(顾比均线50>REF(顾比均线50,1),顾比均线50,DRAWNULL),COLOR333333;

    IF(顾比均线60>REF(顾比均线60,1),顾比均线60,DRAWNULL),COLOR333333;

    布林:MA(BBIBOLL,200),COLORRED,DOTLINE;   

    年线250:MA(CLOSE,250)COLORCYAN,DOTLINE; 

    BOLL:MA(CLOSE,20),COLORADDEEC,LINETHICK2;   

    UPPER:BOLL+2*STD(CLOSE,20),COLOR4F3B3A;

    LOWER:BOLL-2*STD(CLOSE,20),COLOR4F3B3A;

    上轨通道:=BOLL+2.1*STD(CLOSE,20),COLORB07C17,LINETHICK2;

    下轨通道:=BOLL-2.1*STD(CLOSE,20),COLORB07C17,LINETHICK2;

    转折:IF(转4=-1,MA(HIGH,5),MA(LOW,5)),COLORRED,LINETHICK2; 

    {绿K线}

    标识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<转折线 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORGREEN;

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

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

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

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

    {红K线}

    标识14:STICKLINE(CLOSE>转折线 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;

    标识15:STICKLINE(CLOSE>转折线 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;

    标识16:STICKLINE(CLOSE>转折线 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;

    标识17:STICKLINE(CLOSE>转折线 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;

    标识18:STICKLINE(CLOSE>转折线 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;

    标识19:STICKLINE(CLOSE>转折线 AND 转折线>REF(转折线,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;

    标识20:STICKLINE(CLOSE>转折线 AND 转折线>REF(转折线,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;

    标识22:STICKLINE(CLOSE>转折线 AND 转折线>REF(转折线,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED;

    标识23:STICKLINE(CLOSE>转折线 AND 转折线>REF(转折线,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED;

    标识24:STICKLINE(CLOSE>转折线 AND 转折线>REF(转折线,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED;

    标识0001:=DRAWICON(EMA(C,8)>EMA(C,15) AND EMA(C,40)>REF(EMA(C,40),1) AND CROSS(EMA(C,3),EMA(C,35)),L-0.20,24);

    标识0002:=DRAWICON(EMA(C,15)>EMA(C,40) AND EMA(C,35)>REF(EMA(C,35),1) AND CROSS(EMA(C,3),EMA(C,5)),L-0.20,25);

    标识0003:=DRAWICON(ABS(EMA(C,15)-EMA(C,60))/C<0.01 AND EMA(C,15)>EMA(C,30) AND O<EMA(C,3) AND C>EMA(C,3) AND O<EMA(C,15) AND C>EMA(C,15) AND O<EMA(C,30) AND C>EMA(C,30) AND O<EMA(C,60) AND C>EMA(C,60),L-0.20,27);

    标识0004:=DRAWICON(ABS(EMA(C,45)-EMA(C,30))/C<0.011 AND EMA(C,3)>EMA(C,15) AND EMA(C,15)>EMA(C,40) AND CROSS(EMA(C,5),EMA(C,60)),L-0.20,13);

    A11:=OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60);

    A22:=C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60)));

    A33:=V/MA(V,10)>1.2;

    A44:=C/REF(C,1)>1.049;

    出水芙蓉:=A11 AND A22 AND A33 AND A44 AND O<EMA(C,60) AND C>EMA(C,60);

    标识0005:DRAWICON(出水芙蓉 AND REF(BOLL,0)>=REF(BOLL,1),L*0.95,9);

    A1:=C>REF(C,4);

    NT:=BARSLASTCOUNT(A1);

    TJ11:=NT=9;

    TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);

    AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;

    标识0006:DRAWNUMBER(AY>0,REF(L*0.999,AY-1),AY)COLORFF00FF;

    标识0007:DRAWNUMBER(NT=9,REF(L*0.999,8),9)COLOR0099FF;   {1-9数字标识}

    B1:=C<REF(C,4);

    NT0:=BARSLASTCOUNT(B1);

    TJ21:=NT0=9 ;

    TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);

    AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;

    标识0008:DRAWNUMBER(AY1>0,REF(H*1.012,AY1-1),AY1)COLORFF00FF;

    标识0009:DRAWNUMBER(NT0=9,REF(H*1.012,8),9)COLORGREEN;   {1-9数字标识}

    屏蔽:DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.96,0,'███████████')COLORBLACK;

    红三角:DRAWICON(CROSS(C,REF(转折线,0))AND CROSS(C,REF(布林线,0)) ,L*1.01,38);

    转折点:DRAWICON(AY AND CROSS(C,REF(转折线,0)),L*0.97,11);

    数字点:DRAWICON(FILTER(AY,9),L*0.990,41);

    提示1:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.02,0,'★★★  布林线收口后,若股价在布林中轨上方开口即涨,若股价在布林中轨下方开口即跌。')COLORBROWN;

    提示2:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.07,0,'★★★  金手指——股价上穿了转折线 + 底部数字。☆☆☆')COLORADDEEC;

    提示3:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.12,0,'★★★  红三角——股价在上穿了转折线的同时还上穿了布林线。')COLORRED;

    提示4:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.17,0,'★★★  钱袋子——出水芙蓉 + 布林线上行。')COLORLIBLUE;

    提示5:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.22,0,'★★★  圆点点——对应底部数字“123456789”中的数字(1)。')COLOR0099FF;

   {布林金叉●【选股公式】

    BOLL:=MA(CLOSE,20); 

    转1:=IF(C>REF(EXPMEMA(H,5),1),1,0);

    转2:=IF(C<REF(EXPMEMA(L,5),1),-1,0);

    转3:=转1+转2;

    转4:=IF(转3=0,REF(转3,BARSLAST(NOT(转3=0))),转3);

    转折线:=IF(转4=-1,MA(HIGH,5),MA(LOW,5)); 

    红三角:DRAWICON(CROSS(C,REF(转折线,0))AND CROSS(C,REF(布林线,0)),L*0.99,38);

    转折点★【选股公式】

    转1:=IF(C>REF(EXPMEMA(H,5),1),1,0);

    转2:=IF(C<REF(EXPMEMA(L,5),1),-1,0);

    转3:=转1+转2;

    转4:=IF(转3=0,REF(转3,BARSLAST(NOT(转3=0))),转3);

    转折线:=IF(转4=-1,MA(HIGH,5),MA(LOW,5));

    A1:=C>REF(C,4);

    NT:=BARSLASTCOUNT(A1);

    TJ11:=NT=9;

    TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);

    AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;

    金手指:DRAWICON(AY AND CROSS(C,REF(转折线,0)),L*0.99,11);};

   {布林线运用之口诀:

    1,出现开口,股价在上、中轨之间,股价将会向上运行;   

    2,出现开口,股价在中、下轨之间,股价将会向下运行;   

    3,出现缩口,股价在上、中轨之间,股价将会向上运行;   

    4,出现缩口,股价在中、下轨之间,股价将会向下运行;   

    5,股价在上轨处受到压力,回调,尤其是出现缩口的时候;   

    6,股价在下轨处受到支撑,反弹,尤其是出现缩口的时候;   

    7,中轨是支撑也是压力,股价在中轨上方,则是支撑,在中轨下方,则是压力; 

    8,中轨、上轨、下轨三轨粘合,是个股正在选方向。};

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约