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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            47 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            23 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            33 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            51 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            42 views
            0 likes
            Last Post CarlTrading  
            Working...
            X