能帮我一个程式化交易评测的公式吗?
收盘价高于60日均线 买入开仓 收盘价低于60均线 卖出平仓 并且卖出开仓 收盘价又高于60日均线 再买入平仓 并且买入开仓 这样直到最后一个交易日
始终1手
在线等 谢谢
问题正在解决中
c1:c;
ma60:ma(c,60);
if cross(c,ma60) then begin
sellshort(holding<0,0,thisclose);
buy(1,1,thisclose);
end
if cross(ma60,c) then begin
sell(holding>0,0,thisclose);
buyshort(1,1,thisclose);
end
if time>=145700 then begin//最后3分钟平仓,不适用于IF
sell(holding>0,0,market);
sellshort(holding<0,0,market);
end
谢谢啦
还有个弱智的问题 怎么加到软件里 使用
交易-程式化交易评测-。。。。 就不会了
http://www.weistock.com/bbs/dispbbs.asp?boardid=2&Id=185
给你个链接,把里面的视频看下(程式化交易那一部分)