Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Position Display does not update PNL?

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

    Position Display does not update PNL?

    I get main window, get chart trader, get position display and set it equal to a global position display object, then I wanted to subscribe to a positiondisplay.PNL update but it looks like there's only a handler for unit changed, sad tale, so are you saying I just have to get it through onposition update instead of accessing the value from the position display?

    #2
    Alright fine, i guess ill cry myself to sleep

    Comment


      #3
      waaaaaaaehhhhh

      Comment


        #4
        Hello Entwaze,

        Thanks for your post.

        OnPositionUpdate() would need to be used to get information about a position. OnPositionUpdate() is called each time a PositionUpdate is received for the strategy.

        Position.GetUnrealizedProfitLoss() could be used to get the unrealized profit/loss information of a position in OnPositionUpdate().

        See the help guide documentation below for more information.

        OnPositionUpdate(): https://ninjatrader.com/support/help...tionupdate.htm
        Position: https://ninjatrader.com/support/help...8/position.htm
        Position.GetUnrealizedProfitLoss(): https://ninjatrader.com/support/help...profitloss.htm
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          i found i had already gotten the position display earlier in my code and i was getting it again and thats why the pnl wasn't updating, LMAO

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          332 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
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X