Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting cumulative net profit

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

    Plotting cumulative net profit

    are there any examples of plotting cumulative net profit?

    #2
    Hello, thanks for writing in. There is no existing example, you can always right click>Strategy Performance> change the view to "Analysis" at the top left and this will let you chart out the cumulative profit in different ways. We have an example here on how to implement plots in a separate panel from a NinjaScript Strategy:

    Comment


      #3
      Is the strategy performance data (specifically cumulative net profit) available to ninjascript? trying to plot cumulative net profit on the chart.

      or perhaps an event that triggers every time a profit (or loss) is generated?
      Last edited by dibDab; 02-20-2023, 12:30 PM.

      Comment


        #4
        Hello, thanks for the follow up. You can get the unrealized PnL through the Position object:

        Comment


          #5
          ok thanks.

          I'm plotting Position.GetUnrealizedProfitLoss(PerformanceUnit.C urrency, Close[0]); on a strategy indicator.

          In Tools > Options > Trading does "Use Total PnL for Show Realized PnL when flat. " influence this?

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          478 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          319 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          258 views
          1 like
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          341 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          309 views
          0 likes
          Last Post CarlTrading  
          Working...
          X