MACD底背离选股计算方法 底背离选股公式

股票实战家股票学习2019-07-12 00:22:2349
在我们通过MACD等其他图标显示的情况,我们能看到很多不一样的图形,其代表意义也完全不同,之前我们也了解过底背离的相关情况,那么是不是开始想要知道底背离选股的计算方法了呢?那接下来小编就来和大家解释一下底背离的计算公式:
底背离是指当股价指数逐波下行,而DIF及MACD死叉不是同步下降,而是逐波上升,与股价走势形成底背离,预示着股价即将上涨。如果此时出现DIF两次由下向上穿过MACD,形成两次黄金股交叉,则股价即将大幅度上涨。底背离选股公式如下:
{底背离}
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); QZQ:=BARSLAST(REF(MACD,1)《0 AND MACD》0); QM:=LLVBARS(MACD,QZQ+20); MQDZ:=IF(QM》QZQ,REF(MACD,QM),0); XG1:=MACD《0 AND MACD》MQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ《0; XG:REF(XG1,1)=1 AND MACD》REF(MACD,1)
{双底背离}
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); QZQ:=BARSLAST(REF(MACD,1)《0 AND MACD》0); QM:=LLVBARS(MACD,QZQ+20); MQDZ:=IF(QM》QZQ,REF(MACD,QM),0); QF:=LLVBARS(DIFF,QZQ+20); DQDZ:=IF(QF》QZQ,REF(DIFF,QF),0)
XG1:=MACD《0 AND MACD》MQDZ AND DIFF《0 AND DIFF》DQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ《0 AND DQDZ《0; XG:REF(XG1,1)=1 AND MACD》REF(MACD,1)
底双背离是指MACD(绿柱)和DIFF(黄白线)都底背离。
一、放心追涨: MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,30);MA5:=ma(close,60);A1:=(C-O)/O;C1:=IF(REF(O,1)〈REF(MA1,1) AND REF(O,1)〈REF(MA2,1) AND REF(C,1)〉REF(MA1,1) AND REF(C,1)〉REF(MA2,1),1,0);C2:=IF(REF(MA1,1)〉REF(MA3,1) AND REF(MA2,1)〉REF(MA3,1),1,0);C3:=IF(C-O〉0 AND C〉MA1 AND C〉MA2 AND VOL〉1.4*REF(VOL,1) AND C〉MA5 AND C〉REF(C,10),1,0);C4:=IF(A1〈REF(A1,1) AND O〈REF(C,1),1,0);C1〉0 AND C2〉0 AND C3〉0 and C4〉0
二、放胆追高
MA1:=MA(C,5); MA2:=MA(C,10); MA3:=MA(C,20); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; A1:=IF(MA1〉REF(MA1,1) AND REF(MA1,1)〉REF(MA1,2) AND 1.7*(REF(MA1,1)-REF(MA1,2))〈(MA1-REF(MA1,1)),1,0); A2:=IF(1.5*(REF(MA2,1)-REF(MA2,2))〈(MA2-REF(MA2,1)),1,0); A3:=IF(MA1-MA2〉1.3*REF(MA1-MA2,1) AND MA3〉LLV(MA3,10),1,0); A4:=IF(C〈0.7*HHV(H,60) AND REF(HHV(C,60),60)〉0.5*HHV(C,60),1,0); A5:=IF(HHV(C,60)-LLV(C,60)/HHV(C,60)〈0.15 OR HHV(MA3,20)〉REF(HHV(MA3,20),20),1,0); A1〉0 AND A2〉0 AND A3〉0 AND A4+A5〉0 AND K〈85 AND J〈100 AND K〉REF(K,1) AND REF(k,1)〉REF(K,2)
三、均线股市追涨
MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); MA3:=MA(CLOSE,20); MA4:=MA(CLOSE,30); MA5:=ma(close,60); MA6:=ma(close,120); A1:=(C-O)/O; C1:=IF(REF(O,1)〈REF(MA1,1) AND REF(O,1)〈REF(MA2,1) AND REF(C,1)〉REF(MA1,1) AND REF(C,1)〉REF(MA2,1),1,0); C2:=IF(REF(MA1,1)〉REF(MA3,1) AND REF(MA2,1)〉REF(MA3,1),1,0); C3:=IF(C-O〉0 AND C〉MA1 AND C〉MA2 AND VOL〉1.4*REF(VOL,1) AND C〉MA5 AND C〉REF(C,10),1,0); C4:=IF(A1〈REF(A1,1) AND O〈REF(C,1),1,0); C1〉0 AND C2〉0 AND C3〉0 and C4〉0
我们通过函数的计算,给大家统计了关于底背离选股的公式,当然小编还是要和大家说,股票投资风险,虽然理论我们很清楚,但是实际操作还是要谨慎处理,毕竟股票投资行确实存在很大风险。

股票实战家,立足实战,拒绝套路!

分享:

本文来自投稿,不代表本人立场,如若转载,请注明出处:http://www.vszj.net/article/18400.html

  股价   股票投资   股票实战家   股市   黄金股