3個(gè)條件:
(1)均線匯聚粘合金叉發(fā)散
3條均線(5、10、30日)呈多頭排列:
AA:=MA(CLOSE,5);
BB:=MA(CLOSE,10);
CC:=MA(CLOSE,30);
T1:=AA>BB AND BB>CC;
COUNT(T1,4)>=1
(2)均量線也同步匯聚粘合金叉發(fā)散
3個(gè)均量(5、10、30日)呈多頭排列:
DD:=MA(VOL,5);
EE:=MA(VOL,10);
FF:=MA(VOL,30);
T2:=DD>EE AND EE>FF;
COUNT(T2,4)>=1
(3)MACD在零軸附近金叉。
DIFF:="MACD.DIFF"(12,26,9);
DEA:="MACD.DEA"(12,26,9);
CROSS(DIFF,DEA)
ABS(DIFF)<=0.1 AND ABS(DEA)<=0.1
公式代碼:
AA:=MA(CLOSE,5);
BB:=MA(CLOSE,10);
CC:=MA(CLOSE,30);
T1:=AA>BB AND BB>CC;
DD:=MA(VOL,5);
EE:=MA(VOL,10);
FF:=MA(VOL,30);
T2:=DD>EE AND EE>FF;
DIFF:="MACD.DIFF"(12,26,9);
DEA:="MACD.DEA"(12,26,9);
COUNT(T1,4)>=1 AND COUNT(T2,4)>=1
AND CROSS(DIFF,DEA)
AND ABS(DIFF)<=0.1 AND ABS(DEA)<=0.1;
以上!大家可以試一下,覺得適合自己的選股方格后再使用。戏截(cái)富網(wǎng)SOUTHMONEY.COM)
(責(zé)任編輯:張曉軒)