Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Replay Connection

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

    Market Replay Connection

    Hi,

    Is it possible to add a second market replay account like you can with sim accounts? I have a long and short strategy (dynamic hedging) I need to run at the same time on the same instrument.

    In a production enviroment, we run these in two separate subaccounts and in sim, we simply use two different sim accounts both using the same data feed. I would like to test the same functionality in replay mode.

    Best Regards,
    Scott

    #2
    Scott,

    What are you using the second account for in a Market Replay? Is it just that you want to be able to see that one is in short and one is in long instead of seeing flat? So basically you just want to see real-time performance? Historical performance could already be filtered out by your different strategies in the Account Performance reports. Thanks for the clarification.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh,

      I am using it for several reasons. I have a hedging strategy that would interfere with the trades in the first account if run at the same time. Also, it would save a lot of time.

      Many of the strategies I work on are prototypes for high frequency trades and therefore require full book data (i.e. they cannot be backtested in the normal fashion). Market Replay has proven to be the best way to optimize parameters for these strategies.

      Given the time it takes to run a Market Replay session even at 500x, I would like to be able to run a strategy multiple times with different parameter sets simultaneously as this would save a tremendous amount of time.

      Real time performance gives you a feel you can't get from looking at performance reports, especially when you can look at a chart forming real time to get a solid grasp as to how different parameters react with different market conditions.

      Having said all that, I recognize my requirements may be somewhat unique.

      Best Regards,
      Scott

      Comment


        #4
        Hi,

        I would like to use the option Record for market replay and I have a couple of questions.
        If I want tick data I need to open a chart in a tick mode with the option "Record for market Replay" enabled, and then File-Utilities- Download Replay Data.

        Where does it download it? Then is it possible to pass this data to for example excel?

        Thanks

        Comment


          #5
          Hi dvercher,

          Yes, to record tick data for market replay you need a tick chart or market analyzer set to the tick level. The data is stored in subdirectories of My Documents\NinjaTrader 7\db\data

          Each directory there represents a day. The file format is proprietary to NinjaTrader, so no easy approach to working with it in excel athough you can still apply NinjaScript and use it to write to a file.


          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            Scott,

            Thank you for your comments. I am just trying to understand what your requirements are to see what we can do.

            You mentioned that the hedging strategies would interfere with each other, but I am not quite sure what you mean by this. Different NinjaScript strategies do not respond to each other at all. You could have one going long and another going short in the same account without any problems. Or are you trying to do some things like SyncAccountPosition at start where it would only be able to sync one of the positions for one strategy and not both?
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Hi Ryan,

              I imported the sample "StreamWriter", so once I have this, and the downloaded replay data,what's the next step to store information related to certain market conditions or trades outside of NinjaTrader?

              Sincerely

              Comment


                #8
                Read the documentation for the sample on the web page that was linked. There is also additional information commented within the indicator script. If you've not already imported the file:
                Click File > Utilities > Import NinjaScript and select the downloaded file.
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  Ryan,

                  Thanks for getting back to me; I just saw your response. I didn't realize that I could have two versions of the same strategy running on the same instrument on replay without the trades affecting each other.

                  I am watching real time and can separate out the trades for analysis. Thanks for the tip.

                  Best Regards,
                  Scott

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  668 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  377 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  110 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  575 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  580 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X