our ts works fine except this situation.
If connection go down and after a few minute go up, if we call ExitLongLimit we receive an System.IndexOutOfRangeException.
Here an example about instruction
double dblExitPrice= somevalue;
ExitLongLimit(0,true,1,dblExitPrice,this.Name + "_ExitLongLimit","");
We noted this, if we remove a strategy and after re-add it, problem doesn't happen
Complete Error was:
System.IndexOutOfRangeException: Indice oltre i limiti della matrice.
in NinjaTrader.Strategy.StrategyBase.PlaceOrder(Int32 selectedBarsInProgress, Boolean liveUntilCancelled, OrderAction action, OrderType orderType, Int32 quantity, Double limitPrice, Double stopPrice, String signalName, String fromEntrySignal, String oco, Boolean simStop)
in NinjaTrader.Strategy.StrategyBase.ExitLongLimit(In t32 barsInProgressIndex, Boolean liveUntilCancelled, Int32 quantity, Double limitPrice, String signalName, String fromEntrySignal)
in NinjaTrader.Strategy.TS_Break_DAX_2_6.Trade_Enter( String Tipo, String NomeEntrata)
What can we do?
Thank you
Comment