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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          91 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          137 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          121 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          72 views
          0 likes
          Last Post PaulMohn  
          Working...
          X