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