Can you let me know some things I need to look for or common issues that cause the below errors in the Output Window in Strategy code?
Same strategy code for both FOREX and FUTURES.
MBTrading on FOREX and CQG on FUTURES at the time of the below. Both are trading on the CQG server and MBT server NOT simply on the NT Sim 101 account FYI.
1:
Happens on FUTURES:
ZB->System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(T Key key)
at NinjaTrader.Indicator.SessionPivots.CalculateValue Area(Boolean isDeveloping)
at NinjaTrader.Indicator.SessionPivots.OnBarUpdate()
2:
Happens on FUTURES:
**NT** Strategy 'MyStrategyv10_1dbcus/df4b642ff50142dcb4a74f4eceaf00c9' submitted an order that generated the following error 'UnableToChangeOrder'. Strategy has sent cancel requests, attempted to close the position and terminated itself.
**NT** Strategy 'MyStrategyv10_1dbcus/df4b642ff50142dcb4a74f4eceaf00c9' submitted a cancellation request for Order ID '354562968' has not been confirmed cancelled. Please check your account orders and positions.
1/10/2014 10:20:20 AM Cancelled pending exit order, since associated position is closed:
1/10/2014 10:20:21 AM Disable() called: strategy disabled
1/10/2014 10:20:21 AM CancelAllOrders: BarsInProgress=0
**NT** Disabling NinjaScript strategy 'MyStrategyv10_1dbcus/df4b642ff50142dcb4a74f4eceaf00c9'
3:
Happens on FOREX:
An over fill was detected on order...(this happens on the FOREX but not FUTURES)...same exact strategy. What things would I look for to fix in the code to adjust for FOREX to make it stop producing over fills being detected?

Comment