I've enabled a strategy and my first execution resulted in an error that said:
TimeInForce <59> = 1 not supported.
Here's how I'm executing in the code:
EnterLong(LotSizing, "Long");
SetProfitTarget("Long", CalculationMode.Price, Close[0] + ATR(20)[0] * ATRMult);
SetStopLoss("Long", CalculationMode.Price, Close[0] - ATR(20)[0] * ATRMult, false);
And my strategy settings are "GTC".
Any clues as to what's happening?
Comment