指标编写问答124学习的宝藏
605.问:帮忙编一个60分30分15分MACD金叉死叉的指标
答(一鸣):
DIFF15:="MACD.DIFF#min15";
DEA15:="MACD.DEA#min15";
DIFF30:="MACD.DIFF#min30";
DEA30:="MACD.DEA#min30";
DIFF60:="MACD.DIFF#min60";
DEA60:="MACD.DEA#min60";
cross(DIFF15,dea15) and DIFF30>dea30 and DIFF60>dea60;{金叉}
cross(dea15,DIFF15) and DIFF30<dea30 and DIFF60<dea60;{死叉}
学习学习再学习
页:
[1]