欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。
buycond:=ref(c>ma(c,10),1) and time<144000;
sellcond:=ref(c<ma(c,10),1) and time<144000;
if holding>0 and sellcond then sell(1,1,market);
if holding<0 and buycond then sellshort(1,1,market);
if holding=0 and buycond then buy(1,1,market);
if holding=0 and sellcond then buyshort(1,1,market);
if time>=145000 then begin
sell(holding>0,1,market);
sellshort(holding<0,1,market);
end
请问日内交易模型,如果当天信号连亏3次的时候,停止交易等到第二天再继续,应该怎么写?