Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Significant results difference between replay and Sim

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

    Significant results difference between replay and Sim

    Hi There,

    I am working on testing a new strategy by using a number of replays from prior days. Thus far, that process seems to be going fairly well, however, today I had an experiece that has me wanting to probe a bit deeper into how replay and Sim work.

    Here is what happenned. I ran this new strategy today in Sim. The settings included:
    Enforce Immediate Fills
    Delay Comms (30ms)
    Delay Exchange (150ms)
    Apply Commissions to P&L

    After the day was over, I just re-ran the same day (today) again in replay.
    I started the replay at the same time with the same settings and same contracts, etc. The end results were 1000 / contract higher than the SIM results.

    What could account for this difference?
    If replay is running from the same data that was recorded when runnning Sim and Enforce Immediate Fills was checked in both instances, I don't see why there would be a significant difference between the two results.

    Thanks for your help in clarifying my understanding of how these two testing features run.

    Gratefully,

    Learning1

    #2
    >> Delay Comms (30ms)
    >> Delay Exchange (150ms)
    That is the problem. Replay has no delays.

    Comment


      #3
      Thanks lots for your replay - That makes more sense then. So all the settings in the simulation account options apply to live SIM only and when things run in replay, they are running wiith no delays (In effect Delay Comms (0) and Delay Exchange (0). So testing in replay is fine to debug strategy rules, etc, only. To get a more realistic sense of strategy performance, live Sim is the only way. Is that the case?

      Comment


        #4
        Right, replay always with delay=0 to have reproducible results on any speed.

        Comment


          #5
          Thanks. I think this makes sense now, but let me confirm.

          What you are saying is that if I run a day in Live SIM with Comms Delay = 0 and Exchange Delay = 0, I will get a set of results. Then if the same day is run in replay (At any replay speed) the results should closely resemble the original Live Sim results. However, if the original Live SIM is run with something other than 0 in the Delay settings, the later replay of the same period will not closely resemble the orginal Live Sim because the replay feature is programmed to run without considering the Delay settings.

          Therefore, to get consistant results between Live SIM and replay, the Live SIM needs to have delays set to 0 and it doesn't matter what the delay settings are in replay because they aren't used by NinjaTrader when running a replay. Do I have this right?

          Comment


            #6
            I believe your understanding is correct.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Lumbeezl, 01-11-2022, 06:50 PM
            31 responses
            817 views
            1 like
            Last Post NinjaTrader_Adrian  
            Started by xiinteractive, 04-09-2024, 08:08 AM
            5 responses
            14 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by swestendorf, Today, 11:14 AM
            2 responses
            6 views
            0 likes
            Last Post NinjaTrader_Kimberly  
            Started by Mupulen, Today, 11:26 AM
            0 responses
            7 views
            0 likes
            Last Post Mupulen
            by Mupulen
             
            Started by Sparkyboy, Today, 10:57 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X