1. 首页 > 技术分析

底背离公式选股(均线三线合一指标选股公式)

底背离公式选股(均线三线合一指标选股公式)

内容导航:
  • 求助老师:如何编写macd底背离的选股公式
  • 求同花顺MACD底背离选股公式
  • kd底背离选股公式
  • 谁能帮我编个macd底背离的选股公式,不盛感激!
  • 求Rsi指标与股价底顶背离指标,无未来。
  • 有谁帮忙写一个macd周线底背离三次的指标公式?
  • 求:60分钟MACD底背离指标公式?
  • Q1:求助老师:如何编写macd底背离的选股公式

    {副图,供参考}

    DIFF:EMA(C,12)-EMA(C,26);

    DEA:EMA(DIFF,9);

    MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;

    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

    底背离:=REF(C,A1+1)>C AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

    STICKLINE(底背离,0,0.03,2.6,0),COLOR00FF00;

    底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORFF00FF,LINETHICK2;

    DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;

    A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));

    顶背离:=REF(C,A2+1)<C AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);

    顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;

    ============================

    {选股}

    DIFF:=EMA(C,12)-EMA(C,26);

    DEA:=EMA(DIFF,9);

    MACD:=2*(DIFF-DEA);

    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

    底背离:REF(C,A1+1)>C AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

    Q2:求同花顺MACD底背离选股公式

    背离分为,dif背离,dea背离,macd绿柱长短背离,还有面积的背驰,总得有一个条件吧.

    Q3:kd底背离选股公式

    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    L1:=BARSLAST(LOW=LLV(LOW,5));
    L2:=REF(LLVBARS(LOW,20),L1+1);
    LOW1:=REF(LOW,L1);
    LOW2:=REF(LOW,L2);
    K1:=REF(SMA(RSV,3,1),L1);
    K2:=REF(SMA(RSV,3,1),L2);
    L2>L1 AND LOW1<LOW2 AND K1>K2;

    Q4:谁能帮我编个macd底背离的选股公式,不盛感激!

    MA1:=MA(CLOSE,5);
    MA2:=MA(CLOSE,10);
    DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
    DEA:=EMA(DIF,MID);
    MACD:=(DIF-DEA)*2,COLORSTICK;
    DIFF:=SUM(MA1-MA2,0);
    SUMMACD:=SUM(MACD,0);
    W1:=BARSLAST(CROSS(MA2,MA1))+1;
    W2:=BARSLAST(CROSS(MA1,MA2))+1;
    W3:=BARSLAST(CROSS(MACD,0))+1;
    W4:=BARSLAST(CROSS(-MACD,0))+1;

    趋势力度:IF(K,SUMMACD-REF(SUMMACD,MIN(W3,W4)),DIFF-REF(DIFF,MIN(W1,W2)));
    趋势平均力度:趋势力度/IF(K,(MIN(W3,W4)+1)/20,(MIN(W1,W2)+1)/20),COLORSTICK;
    MAX趋势平均力度:HHV(趋势平均力度,34);
    MIN趋势平均力度:LLV(趋势平均力度,34);
    --------------------------------------------------------------------------------------------------------------------------------------------
    K值可调,调成“0”是通过均线缠绕面积判断背驰
    调成“1”是通过macd面积判断背驰。
    白线为均线(或macd )到目前为止的面积,白线的拐点(即某一段的最大值(绝对值))是均线或macd面积。如果K调成1,红绿柱为凭据趋势力度。

    此指标不是选股指标,是个副图指标,因为选股指标需要判断前后面积的大小,难度极大,不易做出,目前还没发现有人能写出来。

    Q5:求Rsi指标与股价底顶背离指标,无未来。

    LC:=REF(CLOSE,1);
    RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
    A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
    B3:REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
    DRAWTEXT(B3>0,0.4,'R底'),COLOR0000FF;
    C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
    D3:REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
    DRAWTEXT(D3>0,0.9,'R顶'),COLORFF9900;

    Q6:有谁帮忙写一个macd周线底背离三次的指标公式?

    你想编写底背离指标首先要说明这底背离的判断方法还有具体判断什么,macd从内容上底背离就分为,dif背离,dea背离,macd柱背离,macd面积背驰,金叉位置背离,从判断上又分隔峰临峰,形式可以多种多样,你具体如何判断要说明清楚才能编写公式。

    Q7:求:60分钟MACD底背离指标公式?

    你好,
    我给你的是幅图公式,MACD背离
    DIFF
    :
    EMA(CLOSE,SHORT)
    -
    EMA(CLOSE,LONG);
    DEA
    :
    EMA(DIFF,M);
    MACD
    :
    2*(DIFF-DEA),
    COLORSTICK,COLOR5454FF;
    DD:=C=HHV(C,180);
    EE:=DEA<
    REF(DEA,1)
    AND
    REF(DEA<
    REF(DEA,1),1)=1;
    CC:=C>
    REF(C,1)
    AND
    REF(C>
    REF(C,1),1)=1;
    上升背离CC
    AND
    EE)*DEA,COLOR00FFFF;
    顶背离DD
    AND
    EE
    AND
    DEA<
    HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;
    FF:=C=LLV(C,180);
    GG:=
    DEA>
    REF(DEA,1)
    AND
    REF(DEA>
    REF(DEA,1),1)=1;
    LL:=C<
    REF(C,1)
    AND
    REF(C<
    REF(C,1),1)=1;
    下降背离LL
    AND
    GG)*DEA,COLORMAGENTA;
    底背离FF
    AND
    GG
    AND
    DEA>
    LLV(DEA,180))*DEA,STICK,LINETHICK3,COLORRED;
    MM:=IF(MACD<
    0,MACD,0);
    JJ:=MM>
    REF(MM,1);
    ZZ:=REF(JJ,1)=1;
    介入区JJ
    AND
    ZZ)*DEA,POINTDOT,COLORRED;{MACD蓝柱缩短---指今日比昨天短}
    STICKLINE(介入区=DEA,DEA,DIFF,3,0),COLORRED;
    DRAWTEXT(CROSS(DIFF,DEA
    ),0,'金\N叉'),COLORCYAN;
    DRAWTEXT(CROSS(DEA,DIFF
    ),0,'死叉'),COLORGREEN;
    参考资料:股侠AAA原创,转载请注明,

    本文由锦鲤发布,不代表本站立场,转载联系作者并注明出处:/showinfo-4-47602-0.html