牛熊多空【副图指标】 —— 知博陋室自用的MACD副图指标

{牛熊多空【副图指标】——知博陋室自用MACD副图指标}

{通用型参数设置: SHORT 2 200 12 LONG 2 200 26 MID 2 200 9}

DIF2:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORGREEN,LINETHICK1;
    DEA2:=EMA(DIF2,MID)COLORFFFF33,LINETHICK1;
    MACD2:=(DIF2-DEA2)/0.5,COLORSTICK;

标柱1:STICKLINE(MACD2>REF(MACD2,1) AND MACD2>0,0.0001,MACD2,2,0),COLORRED;
    标柱2:STICKLINE(MACD2<=REF(MACD2,1) AND MACD2>0,0.0001,MACD2,2,0),COLORYELLOW;
    标柱3:STICKLINE(MACD2<REF(MACD2,1) AND MACD2<0,-0.0001,MACD2,2,0),COLORCYAN;
    标柱4:STICKLINE(MACD2>=REF(MACD2,1) AND MACD2<0,-0.0001,MACD2,2,0),COLORGREEN;
    标柱5:STICKLINE(C>0,0,0,50,1),COLORBLUE; {0 轴 画彩色线}
    标柱6:STICKLINE(MACD2>0,0,-0.0001,8,0),COLORRED; {0 轴 画彩色线}
    标柱7:STICKLINE(MACD2<0,0,-0.0001,8,0),COLORGREEN; {0 轴 画彩色线};

牛熊分界线:0,COLORLICYAN;
    A:=EMA((CLOSE-REF(C,1))/REF(C,1)*10-(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*10,5),
    NODRAW,COLORRED;
    AA:=STICKLINE(A>0,0,A,1,2),COLORRED;
    AB:=STICKLINE(A<0,0,A,1,2),COLORGREEN;
    A1:=EMA(CLOSE,7)-EMA(CLOSE,21);
    B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);
    MACD_牛:IF(A1>=B1,A1,B1),LINETHICK1,COLORRED;
    MACD_熊:IF(B1-A1,B1,A1),LINETHICK1,COLORGREEN;
    选股1:DRAWICON(CROSS(REF(MACD_牛,0),REF(MACD_牛,1))AND MACD_牛>=牛熊分界线,牛熊分界线,1);
    选股2:DRAWICON(CROSS(REF(MACD_牛,0),牛熊分界线),牛熊分界线,9);

提示1:DRAWTEXT_FIX(C!=0,0.01,0.03,0,'选股12项,项项必查: ★ 01 牛熊多空(MACD_必备)、★ 02 买卖比差(成交量_必备)、★ 03 布林中轨(必备)、'),COLORRED;
    提示2:DRAWTEXT_FIX(C!=0,0.01,0.10,0,'                    ★ 04 平均成本(参考)、★ 05 SAR停损(参考)、★ 06 三  平  底(参考)、★ 07 多空 K 线(参考)、'),COLORRED;
    提示3:DRAWTEXT_FIX(C!=0,0.01,0.17,0,'                    ★ 08 波段多空(参考)、★ 09 主力吃货(参考)、★ 10 蚂蟥盯庄(参考)、★ 11 5 日 均线(参考)。'),COLORRED;
    提示4:DRAWTEXT_FIX(C!=0,0.01,0.24,0,'                    ★ 12 观大势,看《薛斯通道》下轨是上行还是下行,用以判断个股所处时段是多头还是空头,再决定可否参与。'),COLORGREEN;

{BIAS-QL}
    {参数 N2: 2 250 6 M2: 2 250 6}
    乖离BIAS:(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100,NODRAW;
    乖离BIASMA:MA(BIAS,M),NODRAW;

(0)

相关推荐