Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PnL in real time

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

    PnL in real time

    Hello,

    I'm working with several strategies simultaneously and I need to know which is the total of PnL for all of these strategies in real time.

    How can I do it?

    Thanks in advance.

    #2
    Hello soyjesus,

    Thanks for your post.

    For this, I would suggest using the Market Analyzer and adding two columns, one for unrealized PnL and the other for realized PnL. This will show these two values for each instrument you add to the market analyzer. You can then add a totaling row which will provide you with the dynamic real-time PnL for both realized and unrealized.

    Reference: http://ninjatrader.com/support/helpG...t_analyzer.htm

    Comment


      #3
      Thanks but how can I access to value of these columns from my code? I would need to chek this total in real time with my own automatic strategy.

      Comment


        #4
        Hello soyjesus,

        Thanks for your reply.

        I did not understand you were looking for a code solution. There are no means or methods available to accomplish your goals through Ninjascript.

        Comment


          #5
          What about including commissions?

          Comment


            #6
            Hello borderman01,

            Thanks for your post and welcome to the NinjaTrader forums.

            You've posted in the NinjaTrader7 strategy forum on a thread that is about realtime PNL.

            Can you clarify the context of the question, "What about including commissions?".

            Comment


              #7
              Originally posted by NinjaTrader_Paul View Post
              Hello borderman01,

              Thanks for your post and welcome to the NinjaTrader forums.

              You've posted in the NinjaTrader7 strategy forum on a thread that is about realtime PNL.

              Can you clarify the context of the question, "What about including commissions?".
              I understand you can use market analyzer to provide a PNL for instruments being traded. You can also add a total column to see all PNL for all instruments traded. My question was is there a way to include commission to see it as well in the PNL? Is there a column for it in market analyzer?

              Thanks

              Comment


                #8
                Hello borderman01,

                Thanks for your reply and appreciate the clarity.

                There is no specific column for commissions in the market analyzer. Most brokers do not provide support for commission feed back (see this link: http://ninjatrader.com/support/forum...ead.php?t=5474)

                Comment

                Latest Posts

                Collapse

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