选股条件:
1.MACD月金叉,MACD周金叉,MACD日金叉共振;2.macd月金叉,MACD周金叉共振;3.MACD月金叉,MACD日金叉共振;4.MACD周金叉,MACD日金叉共振。凡符合1.2.3.4 任何一条的都选出来。
编写源码:
AAA:=CROSS(MACD.DIF#MONTH,MACD.DEA#MONTH) AND CROSS(MACD.DIF#WEEK,MACD.DEA#WEEK)
AND CROSS(MACD.DIF,MACD.DEA);
AAA1:=CROSS(MACD.DIF#MONTH,MACD.DEA#MONTH) AND CROSS(MACD.DIF#WEEK,MACD.DEA#WEEK);
AAA2:=CROSS(MACD.DIF#MONTH,MACD.DEA#MONTH) AND CROSS(MACD.DIF,MACD.DEA);
AAA3:=CROSS(MACD.DIF#WEEK,MACD.DEA#WEEK) AND CROSS(MACD.DIF,MACD.DEA);
XG:AAA OR AAA1 OR AAA2 OR AAA3;