Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Wrong value of Unrealized PnL in strategies tab

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

    Wrong value of Unrealized PnL in strategies tab

    Hello,

    I created a strategy to take Profit and Stop loss from Unrealized PnL Value.
    In strategy tester, everything works well.
    In the simulated account, when I activated the strategy, it opened a position with a Unrealized PnL that is not correct (in the strategies tab) - It was like ($5000) for 1 ES right away.
    In "account tab" Unrealized PnL is correct.

    Can you please help?

    #2
    Hello markkm,

    Thanks for the post.

    It sounds like the order quantity is incorrect. I would need to test the strategy on my end to see the results that I get. If you don't mind, please export the strategy and send it into platformsupport[at]ninjatrader[dot]com and paste the link to this forum thread in the body of the email. You may also post the strategy here if you like.

    Instructions on exporting can be found below:


    I look forward to assisting further.

    Comment


      #3
      Thanks, I don't have access to my computer now, but I'll send it later if we can't figure it out now.
      I don't think it's the quantity. Quantity seems to be correct.

      Whenever I flatten all / closed all the positions, then reactivate strategy, then the wrong Unrealized PnL (in the strategies tab) comes back to pretty much the same wrong number ($4975).

      It looks like the Unrealized PnL (in the strategies tab) is calculated from the past and not newly opened positions.
      Is there a way to have that calculated from new opened positions when I activate strategy?

      Comment


        #4
        Hello markkm,

        Thanks for the reply.

        In my testing, Unrealized PnL in the strategies tab will only show once a position is taken in the account. There might be a bad value in your NinjaTrader database, please reset your database by going to Tools>Database management>Expand "Reset DB">Click "Reset".

        Test the strategy again after this and let me know if that works for you.

        Comment


          #5
          Thank you! this fixed the problem.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          90 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          137 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          120 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          71 views
          0 likes
          Last Post PaulMohn  
          Working...
          X