1,用time,不用用currenttime,
2,开平仓条件最好加上holding的限制,
sell(holding>0,holding,market);
sellshort(holding<0,holding,market);
1.你图表运行模式是什么?你看下日志1450到1500这段时间内有程序化运行完毕的字样没
2.currenttime这个只有最新值,这么用会导致你历史上平仓信号消失的。可以这么处理下,if (time=151500 and not(islastbar))or currenttime >= 151450 and islastbar then sell();
是用time,你是多少周期k线?双击鼠标看下k线时间。