Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Realized PnL

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

    Realized PnL

    I would like to create code which retrieves the daily PnL for an account for all trades in that account not related to any strategy, just manual trades. The PnL which is displayed in the chart trader PnL label when flat.

    It seems to me this should easily accessible as it is displayed in chart trader but I have not found any documented or undocumented way to do this. Any pointers on how to accomplish this?

    #2
    Originally posted by seahn View Post
    I would like to create code which retrieves the daily PnL for an account for all trades in that account not related to any strategy, just manual trades. The PnL which is displayed in the chart trader PnL label when flat.

    It seems to me this should easily accessible as it is displayed in chart trader but I have not found any documented or undocumented way to do this. Any pointers on how to accomplish this?
    Hi,

    right click on the ChartTrader panel -> Chart Trader Properties...

    General

    Show Realized PnL when flat == true
    Attached Files

    Comment


      #3
      Seahn,

      Outsource is correct here.

      The Chart Trader has the option to display your realized PnL for the selected account.

      http://www.ninjatrader.com/support/h...roperties3.htm

      Let me know if I can be of further assistance.
      Cal H.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by outsource View Post
        Hi,

        right click on the ChartTrader panel -> Chart Trader Properties...

        General

        Show Realized PnL when flat == true
        Thanks for your reply but I am looking to get that number in C# code so I can use it in other calculations.

        I am looking for something like

        double pnl=RealizedPnL(string acc)

        where RealizedPnL calls some Ninja function/code to retrieve the daily Profit/Loss for the account acc.

        Comment


          #5
          Seahn,

          You would need to query the accounts to get that information. Note that this is unsupported programming with NinjaScript. However, I have attached a thread below to get you started -
          http://www.ninjatrader.com/support/f...ad.php?t=55718
          Cal H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          142 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          81 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          125 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          119 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          98 views
          0 likes
          Last Post CarlTrading  
          Working...
          X