Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Real time PL and PL on current postion

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

    Real time PL and PL on current postion

    Hi,

    Has anyone written an excel spreadsheet or is there a script or NT screen that can show the days profit and loss and current position, automatically updating?

    Tinkerz

    #2
    tinkerz, unfortunately I'm not aware of such a script or sheet - for NinjaScript strategies you could work with the Performance class to access the needed stats -

    Comment


      #3
      This would have to be done from a strategy? not from an indicator to collect an accounts profit/loss

      Comment


        #4
        Hello Tinkerz,

        Yes, that's correct. Accessing trade performance programatically is only possible in the strategy environment.

        For real time PnL tracking in a spreadsheet, you can look into the Market Analyzer. Add the instruments you're trading to the market analyzer. You can then add columns for PositionAvgPrice, ProfitLoss, etc.

        See here for instructions on adding columns to the market analyzer.

        For more detailed reporting you may need to look at the Account Performance feature.
        Attached Files
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thanks, is there a list of ninjascript functions for the market analyzer?

          if the analzer has the function PositionAvgPrice profit/loss, are they not accessable via an indicator?

          Comment


            #6
            tinkerz, unfortunately an indicator cannot access this info.

            Comment


              #7
              Can write a custom script from the market analyzer that has profit and loss in it?

              Comment


                #8
                Sorry, I'm not sure I follow you - you would load a custom indicator into your Market Analyzer for the custom calcs needed, however unfortunately those can't access your dicretionary position info. The before mentioned Performance class works for NinjaScript strategies only and lets you access the historical and realtime stats for the strategy context it's called in.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                576 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                334 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