在线检测未来函数

编写在10日内5日均线和10日均线完成死叉金叉的互换公式

来源:Internet,编辑:股旁网,2012-09-12

编写条件:

请老师编写在10日内5日均线和10日均线完成死叉金叉的互换先死叉再金叉,死叉与金叉之间的最低价高于死叉前前20天的最低价,股价大于布林线中轨,macd的dif大于dea,股价大于近20天最高价

编写方法:

 s1:=ma(c,5); s2:=ma(c,10);

sf:cross(s1,s2) and any(cross(s2,s1),10) and llv(l,barslast(cross(s2,s1))+1)>ref(llv(l,20),barslast(cross(s2,s1))+1) and c>"boll.mid" and "macd.macd">0 and c>ref(hhv(h,20),1);
 

相关文章