最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 将新MACD改为大智慧可用超跌选股

    正文概述    2024-04-14 08:06:45  

    九毛八公式指标

    公式模块:

    {由macd定位顶底}
    DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIFF,9);
    MacD:=2*(DIFF-DEA);
    KX:=BARSSINCE(CLOSE);{←首次开盘价距金的天数}
    HHN:=CONST(HHV(DIFF,KX));
    HLN:=CONST(LLV(DEA,KX));
    RC1:=CONST((HHN+HLN)/2);
    SS:=((HHN-HLN)/200);
    MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;
    MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;
    MACD中轴:=0+-(-100*SS+RC1);
    DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;
    DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;
    MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;
    MACD超跌:=CONST(LLV(MACD修正,KX));
    MACD超跌线:=IF(MACD超跌<MACD底部,MACD超跌,MACD底部);
    {利用MACD趋势进行精确顶底判断}
    顶部:=MACD顶部+-MACD超跌线;
    天际:=顶部*0.809;
    中轴:=MACD中轴+-MACD超跌线;
    海面:=顶部*0.191;
    底部:=MACD底部;
    {MACD多空量能判断}
    MACD多头:DIFF修正+-MACD超跌线,COLOR339999;
    空头:DEA修正+-MACD超跌线,COLOR00FF00;
    量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;
    超前DEA:=(EMA(MACD多头,7));
    超前MACD:=2*(MACD多头-超前DEA)+中轴;
    {密集成本突破指标筹码峰画线}
    MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,179,0));
    MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));
    MACD空头重画:DRAWBAND(空头,RGB(0,204,0),空头,RGB(0,204,0));
    {中轴线重画及顶部线,天际线,海面线,底部线,多空线文字说明}
    中轴线:DRAWBAND(中轴,RGB(128,128,255),中轴,RGB(128,128,255));
    顶部线文字:DRAWTEXT(CURRBARSCOUNT=1,顶部*0.98,' 顶部线'),COLORFF0033;
    天际线文字:DRAWTEXT(CURRBARSCOUNT=1,天际*0.98,' 天际线'),COLOR404080;
    海面线文字:DRAWTEXT(CURRBARSCOUNT=1,海面,' 海面线'),COLOR999900;
    底部线文字:DRAWTEXT(CURRBARSCOUNT=1,底部,' 底部线'),COLOR669999;
    中轴线文字:DRAWTEXT(CURRBARSCOUNT=1,中轴,' 多空线'),COLORFF8080;

    {由MACD定位顶底}
    DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIFF,9);
    MACD:=2*(DIFF-DEA);
    KX:=BARSSINCE(CLOSE);{←首次开盘价距金的天数}
    HHN:=(HHV(DIFF,KX));
    HLN:=(LLV(DEA,KX));
    RC1:=((HHN+HLN)/2);
    SS:=((HHN-HLN)/200);
    MACD底部:(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;
    MACD顶部:(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;
    MACD中轴:0+-(-100*SS+RC1);
    DIFF修正:DIFF+-(-100*SS+RC1),COLOR008080;
    DEA修正:DEA+-(-100*SS+RC1),COLOR00FF00;
    MACD修正:2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,LINETHICK0;
    MACD超跌:(LLV(MACD修正,KX));
    MACD超跌线:=IF(MACD超跌<MACD底部,MACD超跌,MACD底部);
    {利用MACD趋势进行精确顶底判断}
    顶部:=MACD顶部+-MACD超跌线;
    天际:=顶部*0.809;
    中轴:=MACD中轴+-MACD超跌线;
    海面:=顶部*0.191;
    底部:=MACD底部;
    {MACD多空量能判断}
    MACD多头:DIFF修正+-MACD超跌线,COLOR339999;
    空头:DEA修正+-MACD超跌线,COLOR00FF00;
    量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,LINETHICK0;
    超前DEA:=(EMA(MACD多头,7));
    超前MACD:=2*(MACD多头-超前DEA)+中轴;
    FILLRGN(MACD多头,空头,MACD多头>空头,RGB(204,51,51),MACD多头<空头,RGB(0,179,0));

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 将新MACD改为大智慧可用超跌选股 加入收藏