最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • MACD看透主力 金叉死叉选股指标 通达信指标 九毛八公式指标网

    正文概述    2024-04-07 11:53:18  

    MACD看透主力 金叉死叉选股指标 通达信指标 源码 贴图

    自用的源码修改指标,趋势清晰,多次验证

    加了交叉图标,与死叉图标

    非常好用

    MACD金叉选股源码:

    {MACD}

    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    MACD:=(DIF-DEA)*2;

    金叉1:=CROSS(DIF,DEA);


    选1:=金叉1;


    选股:选1;

    MACD死叉选股源码:

    {MACD}

    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    MACD:=(DIF-DEA)*2;

    金叉1:=CROSS(DEA,DIF);


    选1:=金叉1;


    选股:选1;

    DRAWGBK(C 0, RGB(00,00,00),RGB(1,1,1),0,'11',0);
    MB2:0,COLORWHITE;
    VA:=IF(CLOSE REF(CLOSE,1),VOL,-VOL);
    OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
    OBV2:=EMA(OBV1,3)-MA(OBV1,9);
    OBV3:=EMA(IF(OBV2 0,OBV2,0),3);
    MAC3:=MA(C,3);
    SHORT:=12;LONG:=26;MID:=9;
    DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORWHITE,LINETHICK2;
    DEA:EMA(DIF,MID)COLORYELLOW,LINETHICK2 ;
    主力买:IF(DIF REF(DIF,1),DIF,0),NODRAW;
    主力卖:IF(DIF REF(DIF,1),DIF,0),NODRAW;
    MACD:=(DIF-DEA)*2;
    MACD2:(DIF-DEA)*2,NODRAW;


    吸:=MACD 0 AND MACD REF(MACD,1);
    拉:=MACD 0 AND MACD REF(MACD,1);
    派:=MACD 0 AND MACD REF(MACD,1);
    落:=MACD 0 AND MACD REF(MACD,1);
    STICKLINE(吸,0,MACD,0.5,0),COLOR80FF80,LINETHICK1;
    STICKLINE(拉,0,MACD,0.5,0),COLORRED,LINETHICK1;
    STICKLINE(派,0,MACD,0.5,0),COLOR4646FF,LINETHICK1;
    STICKLINE(落,0,MACD,0.5,0),COLORGREEN,LINETHICK1;
    主力吸筹:吸,COLORYELLOW,NODRAW;
    主力拉升:拉,COLOR040097,NODRAW;
    主力派送:派,COLOR008000,NODRAW;
    主力砸盘:落,COLORFFAA00,NODRAW;
    JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA =0));
    {www.9m8.cn 九毛八公式指标网}
    A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
    A2:=BARSLAST(REF(CROSS(DEA,DIF),1));

    主力买盘:IF(DIF REF(DIF,1),DIF,DRAWNULL),COLORWHITE,LINETHICK;
    主力卖盘:IF(DIF REF(DIF,1),DIF,DRAWNULL),COLORWHITE,LINETHICK1;
    DRAWTEXT_FIX(C O,0.01,0.01,0,'www.9m8.cn 九毛八公式指标网'),COLORYELLOW;
    DRAWICON(CROSS(DIF,DEA),DIF DEA 1,42);
    DRAWICON(CROSS(DEA,DIF),DIF DEA 0,43);
    DRAWICON(CROSS(DIF,DEA)AND DIF 0,DIF,13);
    DRAWICON(CROSS(DEA,DIF)AND DEA 0,DEA,14);
    DRAWICON(CROSS(DIF,DEA)AND DIF 0,DIF,25);
    DRAWICON(CROSS(DEA,DIF)AND DEA 0,DEA,27);
    收盘价:CLOSE,NODRAW;
    {指标显示数字}
    Z:=STRCAT('..',VAR2STR(MACD2,2));
    DRAWTEXT(ISLASTBAR,MACD2,Z);
    {指标显示数字结束};


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » MACD看透主力 金叉死叉选股指标 通达信指标 九毛八公式指标网 加入收藏