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

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 MarianApalaghiei, Today, 10:49 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by love2code2trade, Yesterday, 01:45 PM
            4 responses
            28 views
            0 likes
            Last Post love2code2trade  
            Started by funk10101, Today, 09:43 PM
            0 responses
            8 views
            0 likes
            Last Post funk10101  
            Started by pkefal, 04-11-2024, 07:39 AM
            11 responses
            37 views
            0 likes
            Last Post jeronymite  
            Started by bill2023, Yesterday, 08:51 AM
            8 responses
            46 views
            0 likes
            Last Post bill2023  
            Working...
            X