Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot Serialise IOrder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cannot Serialise IOrder

    Hi

    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
    Last edited by LloydH; 04-07-2010, 08:29 AM.

    #2
    LloydH,

    To check, what version of NT7 are you using? Can you provide us with steps we can follow to reproduce? Thank you.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I have Version 7.0.0.13. I will post more details on how to re-create shortly.
      regards
      Lloyd

      Comment


        #4
        Lloyd,

        In your strategy code did you make a public property for an IOrder? IOrder objects cannot be public properties so you will need to remove that. Please see if that helps.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Josh,

          I have my IORder objects stored in a list which had public properties, changed to private and it has fixed the issue. Many Thanks,
          Lloyd

          Comment


            #6
            Great. Glad you got it resolved.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            612 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            355 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            561 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            564 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X