發(fā)現三個MACD底背離選股公式,選擇出的票子不統(tǒng)一,發(fā)給大家看看,討論一下哪個才是最好的版本。
選股一:(注意包含了DCLOSE函數,是個移動函數,但是和普通的未來函數有區(qū)別,陸老師用的三合一選股用的就是這款)
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9),COLORFFFF00;
MACD:=(DIFF-DEA)*2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
底背離:REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
選股二:(其實就是把第一個選股公式的DCLOSE改為了CLOSE)
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
FILTER(B1>0,5)
選股三:
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
AB:=REF(DEA,20);
BB:=REF(CLOSE,30);
低值:=LLV(DEA,25);
選股:CROSS("KDJ.J","KDJ.D")AND "KDJ.D"<30 AND DEA>AB AND DEA>低值 AND CLOSE<BB AND 低值<-0.2;
(責任編輯:張曉軒)