Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding a plot based on a calculated value within a strategy

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

    Adding a plot based on a calculated value within a strategy

    Hi-

    Title says it all. I know how to add plots through the Initialize() function in a strategy, but how can I display a plot that displays a value calculated over time within a strategy, as its running?

    For example, say I have all sorts of buy signals, and I'm constantly polling my buy signals to give me an overall value. I would like to plot the aggregate value of my buy signals over time, either as an overlay or as a separate window in the chart.

    #2
    Hello cgeorgan,

    Thank you for your post.

    You can see how this is done in the following sample:
    When running a strategy on a chart you may find the need to plot values onto a chart. If these values are internal strategy calculations that are difficult to migrate to an indicator, you can use the following technique to achieve a plot. NinjaTrader 8 With NinjaTrader 8 we introduced strategy plots which provide the ability


    Please take a look at this and let me know if I can assist any further.
    DexterNinjaTrader Customer Service

    Comment


      #3
      Great!

      Thank you, this works.

      Comment


        #4
        Any workaround for Strategy Analyzer?

        Hello NinjaTrader_Dexter,

        as you wrote: It doesn't work in Strategy Analyzer. Is there any way to plot calculated values of a strategy in Strategy Analyzer?

        Many thanks in advance!

        Comment


          #5
          Hello,

          Only way to do this is with a strategy plot.

          Please see this value for plotting in a strategy.

          When running a strategy on a chart you may find the need to plot values onto a chart. If these values are internal strategy calculations that are difficult to migrate to an indicator, you can use the following technique to achieve a plot. NinjaTrader 8 With NinjaTrader 8 we introduced strategy plots which provide the ability
          BrettNinjaTrader Product Management

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          566 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
          547 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X