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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          169 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          324 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          250 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          351 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          180 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X