Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PnL #s wrong (6.5.0.7)

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

    PnL #s wrong (6.5.0.7)

    I am running 5 flavors of the same strategy (diff Data Series) and have a Static Super DOM open. After a few fills; The PnL in the DOM is way off; Avg Prc used in calc way off...so Control Center/Strategies/Unrealized never matches DOM.

    And Control Center/Strategies/Realized never matches Control Center/Accounts/Realized PnL.

    Can't trust Control Center/Strategies/UnRealized because the Realized is wrong...

    At the end of the day I can reconcile Executions with Realized PnL.

    #2
    That could be the case.

    - A strategy can include historical fills in its reported PnL
    - If a strategy is in a position as it is started, a virtual execution will be included in its PnL
    - Right click on a strategy --> Performance --> Real-Time only. This should closely match the Performance Tab however...this can include a virtual execution.
    RayNinjaTrader Customer Service

    Comment


      #3
      First line in OnBarUpdate:

      // Make sure this strategy does not execute against historical data
      if (Historical)
      return;

      I wipe the slate clean with Tools/Options/Simulator/Reset before each round of testing...

      Comment


        #4
        Great.

        So if you start the day fresh (no executions) run a single strategy, terminate it. Performance should match what is in the Account Performance. If you run multiple strategies on the same market in the same day, the account performance for sure will be different based since your trade pairings are create from executions at the account level independant of a strategy.
        RayNinjaTrader Customer Service

        Comment


          #5
          I unchecked Tools/Options/General/Use last price for PnL & Use FIFO for position... and all is well.

          I am guessing the problem with the DOM may be in the FIFO calc...

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by anton_tymoshchuk, Yesterday, 01:14 AM
          4 responses
          24 views
          0 likes
          Last Post anton_tymoshchuk  
          Started by percy3687, Today, 12:28 AM
          0 responses
          7 views
          0 likes
          Last Post percy3687  
          Started by sofortune, Yesterday, 11:45 PM
          1 response
          8 views
          0 likes
          Last Post sofortune  
          Started by zzeric, Yesterday, 11:23 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by Pep de lou, Yesterday, 08:14 PM
          2 responses
          23 views
          0 likes
          Last Post bltdavid  
          Working...
          X