Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing the panel for custom indicator in strategy builder

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

    Changing the panel for custom indicator in strategy builder

    I use custom indicator in my Strategy and it looks like I cannot change the panel in which plot is shown in the strategy analyzer. How can I change the panel using the code?
    Thanks,
    Sam

    #2
    Hello Sam,

    Thanks for your post.

    There is no option in the Strategy Builder that allows you to set if an indicator is drawn on the price panel or a separate panel. This would require unlocking the code from the Strategy Builder by clicking the 'Unlock code' button and manually programming this.

    With NinjaTrader 8 we introduced strategy plots which provide the ability for a strategy to render its own plots. These plots must be specific to a single panel just like indicators.

    If you need to have strategy plots on more than a single panel then please use the technique seen in the SampleStrategyPlot_NT8 reference sample in this forum thread:

    https://ninjatrader.com/support/foru...trategy?t=6651

    You can find documentation on the standard methods for plotting in the Indicator help guide section, although the documents are for indicators the plotting items are shared between indicators and strategies.

    See this help guide page for more information: http://ninjatrader.com/support/helpG...us/addplot.htm

    Let me know if I may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hi Brandon,

      This is causing an issue for nested indicators and a couple of other cases. For example, if I add an EMA on a volume indicator, it's impossible to put the EMA in the same panel (in the strategy analyzer) of the volume indicator. Therefore the ema only appears a a long flat line in the chart panel.

      Comment


        #4
        Hello RT001,

        Thanks for your note.

        The ChartIndicators collection can be used to select the panel for the added indicator.

        See the reference sample created by my colleague Chelsea on the Forum thread linked below for how this could be accomplished.

        StrategyPlotPanelSelectExample: https://ninjatrader.com/support/foru...592#post788592

        Let me know if I may assist further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Thank you. This is not working well for me. I set both indicators in the strategy to same pane. Still displayed in separate panel.
          Thanks,
          Sam

          Comment


            #6
            Hello sambathraj,

            Thanks for your note.

            The example script I linked to in post # 4 demonstrates how to select the panel for an added indicator.

            When enabling this reference sample on a chart window, you will see the SampleOverlayPlot appear on the price panel and you will see the SamplePanelPlot appear in a separate panel on the chart. See the attached screenshot.

            You could compare your indicator/strategy logic to the indicator/strategy logic in the reference sample to see where there might be differences in your script(s).

            Let me know if I may assist further.
            Attached Files
            <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            110 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            59 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            37 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            41 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            78 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X