老师好.如下模型请改为限价交易.用收盘价.并加1跳开平仓.谢谢!!
buycond:=ref(count(c>o,3)=3,1);
sellcond:=ref(count(c<o,3)=3,1);
if holding<0 and buycond then sellshort(1,1,MARKETR);
if buycond and holding=0 then
begin
buy(1,1,MARKETR);
end
if holding>0 and sellcond then sell(1,1,MARKETR);
if holding=0 and sellcond then buyshort(1,1,MARKETR);
SELL(((TIME>=151450) and (HOLDING>0)),SS,MARKET);
SELLSHORT(((TIME>=151450) and (HOLDING<0)),SS,MARKET);
把上面的所有market和marketr都改成limitr,close+mindiff
这种情况还请用户自己学习,无论是论坛还是我们系统自带的策略都有移动止损范例。
希望用户自己了解含义后融会贯通

此主题相关图片如下:qq截图20140228090313.jpg