Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Looking for indicator to show PnL on the chart

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

    Looking for indicator to show PnL on the chart

    Does anyone have code or jump start code I can use to try and get an basic indicator for my trading.
    What I'm looking to do simply is for my account, say "Sim101" for example, reflect my currently Total PnL onto the Chart like in large text in the top left corner or something.

    #2
    Hello MatthewLesko,

    I am not aware of a specific item that matches that description but you could access that data in code. Are you looking for the total realized or unrealized pnl on the account? And is that for the instrument the indicator is applied to or total including all instruments?

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello MatthewLesko,

      I am not aware of a specific item that matches that description but you could access that data in code. Are you looking for the total realized or unrealized pnl on the account? And is that for the instrument the indicator is applied to or total including all instruments?
      yeah i'd say unrealized just tracking the PnL on the chart

      Comment


        #4
        Hello MatthewLesko,

        You can use the addon frameworks account class for that. The first link below shows how to find an account and save it to a variable. The second link would use that variable and the accounts Get method to get account values. You can use AccountItem.UnrealizedProfitLoss to get the unrealized pnl.






        Comment


          #5
          Originally posted by MatthewLesko View Post
          Does anyone have code or jump start code I can use to try and get an basic indicator for my trading.
          What I'm looking to do simply is for my account, say "Sim101" for example, reflect my currently Total PnL onto the Chart like in large text in the top left corner or something.
          MatthewLesko

          Don't know if this is what you're after or if it helps.


          Position Display Indicator

          This indicator provides a customizable text box which displays a position’s UnRealized PnL, Realized PnL of a selected account, and the overall cash value of the account.

          Comment


            #6
            Originally posted by dj22522 View Post

            MatthewLesko

            Don't know if this is what you're after or if it helps.


            Position Display Indicator

            This indicator provides a customizable text box which displays a position’s UnRealized PnL, Realized PnL of a selected account, and the overall cash value of the account.
            Awesome thanks I'll try it out. Getting my floating text to move where I wanted to was not working out.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            656 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            371 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            579 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X