1分钟图中,中午收盘前10分钟和下午收盘前10分钟平仓,且停止开仓,怎么编写?多谢!!!!!!!!!!!
根据具体品种写时间例如股指的中午11:30收盘,下午15:15收盘
if time>=112000 and time<130000 then begin
sell(holding>0,holding,market);
sellshort(holding<0,holding,market);
end
if time>150500 then begin
sell(holding>0,holding,market);
sellshort(holding<0,holding,market);
end
开仓条件里加上(time>090000 and time<112000) or (time>130000 and time<150500)