Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculation differences between live and market replay

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

    Calculation differences between live and market replay

    Are there any calculations that are done differently when trading from Market Replay versus (in my case) Interactive Brokers? Excluding that fills are going to be different, I'm talking more about how PNL is calculated (assuming you are correctly putting commissions in both Replay and IB).

    I'm getting some odd discrepancies and I cannot pin down what the issue is. Hoping that if there are any differences I should be aware of, I can narrow it down.

    Thanks

    #2
    Hello lookOutBelow,

    Thank you for writing in.The formula to calculate PnL is the same. Could you please answer a few questions to help narrow down the issue and possibly be more specific as to what is actually going on?

    -Do you have "Use FIFO for position avg. price calculations" checked in Tools -> Options -> General tab?

    -Are you trading a non-USD currency pair?


    Thank you in advance.
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      Hi Michael.

      The problem may have been the FIFO (it was checked). After writing my post, I unchecked it to see if it made a difference and it appears it may of. I haven't been able to fully test it. Will try again tomorrow during market hours.

      Thanks,


      p.s. I'm trading treasury futures.



      Originally posted by NinjaTrader_MichaelM View Post
      Hello lookOutBelow,

      Thank you for writing in.The formula to calculate PnL is the same. Could you please answer a few questions to help narrow down the issue and possibly be more specific as to what is actually going on?

      -Do you have "Use FIFO for position avg. price calculations" checked in Tools -> Options -> General tab?

      -Are you trading a non-USD currency pair?


      Thank you in advance.

      Comment


        #4
        Hello lookOutBelow,

        Thank you for the update.

        I look forward to your response.
        Michael M.NinjaTrader Quality Assurance

        Comment


          #5
          It looks like having FIFO checked was causing the problem. I seem to now be getting correct results.

          Thanks

          Comment


            #6
            Hello lookOutBelow,

            Thank you for your response. I am glad to hear that resolved the issue.

            Please have a great weekend!
            Michael M.NinjaTrader Quality Assurance

            Comment

            Latest Posts

            Collapse

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