底背离选股公式介绍
2020/10/13 15:25:59 股票入门 http://rumen.southmoney.com
底背离是指当股价指数逐波下行,而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(黄白线)都底背离。
一、放心追涨:M:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,30);MA5:=ma(close,60);:=(C-O)/O;C1:=IF(REF(O,1)〈REF(M,1) AND REF(O,1)〈REF(MA2,1) AND REF(C,1)〉REF(M,1) AND REF(C,1)〉REF(MA2,1),1,0);C2:=IF(REF(M,1)〉REF(MA3,1) AND REF(MA2,1)〉REF(MA3,1),1,0);C3:=IF(C-O〉0 AND C〉M AND C〉MA2 AND VOL〉1.4*REF(VOL,1) AND C〉MA5 AND C〉REF(C,10),1,0);C4:=IF(〈REF(,1) AND O〈REF(C,1),1,0);C1〉0 AND C2〉0 AND C3〉0 and C4〉0
二、放胆追高
M:=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; :=IF(M〉REF(M,1) AND REF(M,1)〉REF(M,2) AND 1.7*(REF(M,1)-REF(M,2))〈(M-REF(M,1)),1,0); A2:=IF(1.5*(REF(MA2,1)-REF(MA2,2))〈(MA2-REF(MA2,1)),1,0); A3:=IF(M-MA2〉1.3*REF(M-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); 〉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)
三、均线股市追涨
M:=MA(CLOSE,5); MA2:=MA(CLOSE,10); MA3:=MA(CLOSE,20); MA4:=MA(CLOSE,30); MA5:=ma(close,60); MA6:=ma(close,120); :=(C-O)/O; C1:=IF(REF(O,1)〈REF(M,1) AND REF(O,1)〈REF(MA2,1) AND REF(C,1)〉REF(M,1) AND REF(C,1)〉REF(MA2,1),1,0); C2:=IF(REF(M,1)〉REF(MA3,1) AND REF(MA2,1)〉REF(MA3,1),1,0); C3:=IF(C-O〉0 AND C〉M AND C〉MA2 AND VOL〉1.4*REF(VOL,1) AND C〉MA5 AND C〉REF(C,10),1,0); C4:=IF(〈REF(,1) AND O〈REF(C,1),1,0); C1〉0 AND C2〉0 AND C3〉0 and C4〉0
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。