input:units(3,1,100);
if mod(time/100,14)=7 and holding=units then begin
sell(1,units,market);
buyshort(1,units,market);
end
else if mod(time/100,14)=0 and holding=-units then begin
sellshort(1,units,market);
buy(1,units,market);
end
else begin
buy(mod(time/100,14)=0 and holding=0,units,market);
buyshort(mod(time/100,14)=7 and holding=0,units,market);
end
作用就是每7分钟反向
但是不知道为什么会突然来了个2手。。。
没有下单,我刚开始用金字塔,现在还是普通版的
上面的图只是交易系统加载到图表上就有问题
测试结果是正的(测试里有止损),而且测试报告里的交易明细一直是3手,只是图表显示有问题