Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CortexZenUSA, Today, 12:53 AM
          0 responses
          1 view
          0 likes
          Last Post CortexZenUSA  
          Started by CortexZenUSA, Today, 12:46 AM
          0 responses
          1 view
          0 likes
          Last Post CortexZenUSA  
          Started by usazencortex, Today, 12:43 AM
          0 responses
          5 views
          0 likes
          Last Post usazencortex  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          168 responses
          2,265 views
          0 likes
          Last Post sidlercom80  
          Started by Barry Milan, Yesterday, 10:35 PM
          3 responses
          11 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X