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 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
          330 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
          548 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          549 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X