Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

replay101 cash value gain does not equal realized pnl

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

    replay101 cash value gain does not equal realized pnl

    NT version 9

    why does cash value gain (1404.86) not equal realized pnl when account is flat?

    pic 1 does not use last price for pnl calcs

    pic2 does use last price for pnl calcs

    pic 3 on rewind replay101 always resets to 10000
    Attached Files
    Last edited by ATI user; 03-02-2012, 07:49 AM.

    #2
    Hello,

    I would want to reproduce this and look into this.

    What instrument are you using?

    What day and time are you testing.

    Can you send a screenshot of your simulation tab settings.

    Finally what type of trades are you doing, can you duplicate with only one trade or does it take some scale in and scale out to duplicate?

    -Brett
    BrettNinjaTrader Product Management

    Comment


      #3
      Hi Brett
      ES 12-11 for 9 aug 2011 from midnight to 4:00 PM eastern
      scale in and out...see Executions
      Attached Files

      Comment


        #4
        1 lot no scale in/out is no problem

        so...seems related to scaling in/out
        Attached Files

        Comment


          #5
          Thanks for that, in this case it could be due to accounting differences.

          What do you have checked in control center->tools->options-> Check box for Use FIFO for position avg. price calculations?

          Can you please retry with this checked if it is unchecked and let me know if they now line up a bit better or still off?

          -Brett
          BrettNinjaTrader Product Management

          Comment


            #6
            even worse with FIFO checked
            Attached Files

            Comment


              #7
              Alright its not that then.

              Another difference is you use use last price for PnL unchecked however I dont see this making that much of a difference. May be worth one more test with that checked however I do not think it will make the difference we are looking for unless you had some bad ask/bid data that's skewing the results.

              Can you reproduce this with a set trade list of actions is so what is that list so I can look into the behavior on my side.

              For example:

              Buy 1 ES 03-12
              Buy 1 ES 03-12
              Sell 1 ES 03-12
              Buy 1 ES 03-12
              Sell 1 ES 03-12
              Sell 1 ES 03-12


              Or whatever action you take to reproduce on your side on replay and I will do the same exact procedure on my side. Thanks for supplying that.

              -Brett
              BrettNinjaTrader Product Management

              Comment


                #8
                Originally posted by NinjaTrader_Brett View Post
                Another difference is you use use last price for PnL unchecked however I dont see this making that much of a difference. May be worth one more test with that checked however I do not think it will make the difference we are looking for unless you had some bad ask/bid data that's skewing the results.
                t
                Please see original post above showing 'last price for pnl calcs' both checked and unchecked...i.e. no difference

                Comment


                  #9
                  Thanks I suspected that would be the case but wanted to double check.

                  Can you reproduce this with a set trade list of actions is so what is that list so I can look into the behavior on my side.

                  For example:

                  Buy 1 ES 03-12
                  Buy 1 ES 03-12
                  Sell 1 ES 03-12
                  Buy 1 ES 03-12
                  Sell 1 ES 03-12
                  Sell 1 ES 03-12


                  Or whatever action you take to reproduce on your side on replay and I will do the same exact procedure on my side. Thanks for supplying that.
                  BrettNinjaTrader Product Management

                  Comment


                    #10
                    closer in this test

                    FIFO is unchecked; use last price for pnl calc is unchecked

                    commissions are 2.20 one way
                    Attached Files

                    Comment


                      #11
                      Last thing we might try is un checking commissions if your willing.

                      -Brett
                      BrettNinjaTrader Product Management

                      Comment


                        #12
                        Originally posted by NinjaTrader_Brett View Post
                        Last thing we might try is un checking commissions if your willing.

                        -Brett
                        pic 1 includes commission
                        pic 2 does not

                        either way, commissions should be applied to both cash value and realized pnl at the same time
                        Attached Files

                        Comment


                          #13
                          Ok so nothing conclusive here.

                          Looks like something I would need to test on my side.

                          What is the sequence of orders you using to get this result for me to do on my side?

                          Thx.
                          BrettNinjaTrader Product Management

                          Comment


                            #14
                            Originally posted by NinjaTrader_Brett View Post
                            Ok so nothing conclusive here.

                            Looks like something I would need to test on my side.

                            What is the sequence of orders you using to get this result for me to do on my side?

                            Thx.
                            I am executing from code using EnterLong and EnterShort...i.e. no atms
                            Attached Files

                            Comment


                              #15
                              Thanks for the list, I will look into duplicating these types of buys and sells on my side shortly and check into the math.

                              -Brett
                              BrettNinjaTrader Product Management

                              Comment

                              Latest Posts

                              Collapse

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