Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Paul H.NinjaTrader Customer Service

    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.
        Paul H.NinjaTrader Customer Service

        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?".
            Paul H.NinjaTrader Customer Service

            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)
                Paul H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by jeronymite, 04-12-2024, 04:26 PM
                3 responses
                43 views
                0 likes
                Last Post jeronymite  
                Started by frankthearm, Today, 09:08 AM
                4 responses
                9 views
                0 likes
                Last Post frankthearm  
                Started by yertle, Today, 08:38 AM
                5 responses
                15 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by adeelshahzad, Today, 03:54 AM
                3 responses
                16 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by bill2023, Yesterday, 08:51 AM
                6 responses
                27 views
                0 likes
                Last Post NinjaTrader_Erick  
                Working...
                X