Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unhandled Exception, Strategy & Market Replay Connection

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

    Unhandled Exception, Strategy & Market Replay Connection

    I used the wizard (Tools | New NinjaScript | Strategies) to create the simplest possible strategy. To do this, after giving the strategy a name, I clicked Next until Finish was available and then clicked Finish.

    I using a market replay connection. I am running this copy of NT on a development machine and have copied the recorded data from my trading machine. I copied all folders and files underneath C:\Program Files\NinjaTrader 6\db\data.

    When I add this strategy (Strategy tab | right-click Strategy | New Strategy) , I get an unhandled exception popup that reads, in part,
    System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.Strategy.StrategyGridDisplay.AddStrate gy(StrategyBase strategy, Int32 rowIndex)
    at NinjaTrader.Strategy.StrategyGridDisplay.OnNewStra tegy(Object sender, EventArgs e)

    I do not have this problem when connected to simulated data.

    I am using 6.0.0.6.

    What am I doing wrong?

    Thank you.

    #2
    imported post

    Further data.

    I get exactly the same problem running the SampleAsmStrategy on my trading machine.

    Comment


      #3
      imported post

      Thanks for reporting, someone from development may request further information if required.
      RayNinjaTrader Customer Service

      Comment


        #4
        imported post

        I'll be happy to help.

        Comment


          #5
          imported post

          I have a complex workaround -- sorry it is so long.

          1)
          a) Global simulation mode off
          b) Connect to market replay
          c) Attempt to load the strategy. continue after exception message.
          d) Disconnect from market replay

          2)
          a) Global simulation mode on
          b) Connect to simulated data feed
          c) Load the strategy
          d) Disconnect from simulated data feed

          3)
          a) Global simulation mode off
          b) Connect to market replay
          c) Attempt to load the strategy. continue after exception message.

          4)
          a) Global simulation mode on
          b) Load the strategy

          Strategy is now loaded.

          Comment


            #6
            imported post

            I suggest updating to latest NT6B7 and trying to reproduce. Note: Replay files now are in <my documents>\NinjaTrader 6\db\data.

            If you still can reproduce then I would need:
            - market replay data file(s)
            - strategy
            - which instrument and timeframe are you running the strategy on?

            Please send all to "dierk AT ninjatrader DOT com".

            Thanks

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            69 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            42 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            24 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            27 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            54 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X