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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          45 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          21 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          31 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          50 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          42 views
          0 likes
          Last Post CarlTrading  
          Working...
          X