I am getting the following error when I try to enable my strategy
07/04/2010 14:48:26|0|4|Failed to execute DB job 'StrategyUpdateJob': There was an error reflecting type 'NinjaTrader.Strategy.CrossoverV10'.: There was an error reflecting field 'ShortOrd'.: There was an error reflecting type 'NinjaTrader.Strategy.CrossoverV10.Order'.: Cannot serialize member 'NinjaTrader.Strategy.CrossoverV10+Order.oe1' of type 'NinjaTrader.Cbi.IOrder', see inner exception for more details.: Cannot serialize member NinjaTrader.Strategy.CrossoverV10+Order.oe1 of type NinjaTrader.Cbi.IOrder because it is an interface.
I also have these messages in the trace file
2010-04-07 14:56:42:982 Db.Globals.StrategyUpdateJob2: WARNING: Execution='' Instrument='6E 06-10' Account='Sim101' Name='Virtual Entry Execution' Exchange=Default Price=1.335 Quantity=4 Market position=Short Commission=16 Order='-None-' Time='07/04/2010 14:02:50'
2010-04-07 14:56:42:984 Db.Globals.StrategyUpdateJob2: WARNING: Execution='' Instrument='6E 06-10' Account='Sim101' Name='Virtual Entry Execution' Exchange=Default Price=1.3342 Quantity=3 Market position=Short Commission=12 Order='-None-' Time='07/04/2010 14:12:48'
2010-04-07 14:56:42:985 Db.Globals.StrategyUpdateJob2: WARNING: Execution='' Instrument='6E 06-10' Account='Sim101' Name='Virtual Entry Execution' Exchange=Default Price=1.3342 Quantity=3 Market position=Short Commission=12 Order='-None-' Time='07/04/2010 14:38:21'
I noticed that this problem occurs if my strategy has active orders after loading the historical data on the chart (I am loading the minimum 1 days worth of history). I do NOT get this problem if my strategy is Flat after loading the historical data on the chart.
regards
Lloyd Hopkins

Comment