完蛋了,是我策略里写的时候出现笔误。 if(Close[0] > High[1]) { SSell = CloseOrder(SSell, 0); } if(Close[0] < (OpenPrice - TakeProfit * Point)) { SSell = CloseOrder(SSell, 0); } if(Close[0] > (OpenPrice + StopPrice * Point)) { SBuy = CloseOrder(SBuy,1); } 上面红字部分应该是: SSell = CloseOrder(SSell, 0);