Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StrategyPlot not plotting anything

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

    StrategyPlot not plotting anything

    Hello,

    I'm trying to use a StrategyPlot indicator (currently in the backtest mode) as described here http://www.ninjatrader.com/support/f...ead.php?t=6651
    All charts come out blank. Any idea how this can be fixed? I very much need this functionality, since indicator calculations are extremely complex and can be done only inside the strategy.

    Thanks.

    #2
    gena72,

    I am happy to assist you.

    What sort of calculations? Most likely there is an error in the code causing plots to not appear. If you could post your code it would be helpful in discovering the issue.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Well, I don't think type of calculations makes any difference. Actually, the "stock" example from here http://www.ninjatrader.com/support/f...ead.php?t=6651 does not seem to work on NT7 (64).
      The example uses
      StrategyPlot(0).Value.Set(High[0]);
      StrategyPlot(1).Value.Set(Highs[1][0]);

      Comment


        #4
        gena,

        I am able to get the reference sample to work.

        Please ensure you are attaching the strategy to a chart using > Right click the chart > go to Strategies > Select the strategy. Now, ensure that "Enabled" is set to "True".

        Please also be aware that this strategy will not plot in the chart tab of the Strategy Analyzer.

        Note: This technique has limited functionality. It will NOT work for charts in the Strategy Analyzer during backtesting, but it will work on real-time charts.
        Please let me know if I may assist further.
        Last edited by NinjaTrader_AdamP; 01-23-2012, 08:49 AM.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Apparently I missed the part about this strategy not working in strategy analyzer in backtest mode. I wonder if there's any replacement functionality for backtest.
          For the main chart I can use DrawLine(...), but if i want, for instance, to draw a custom oscillator, on a lower pane, there's no solution.

          Comment


            #6
            gena,

            To plot from a strategy, you can use the following reference sample. Please be sure to read the note.

            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


            You can use Market Replay to "back-test" a strategy since its like having live tick data coming in.



            Please let me know if I may assist further.
            Adam P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            647 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X