Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible to draw some plots on the price panel and others in a separate window?

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

    Is it possible to draw some plots on the price panel and others in a separate window?

    I want to draw a indicator plot to the price panel and another to a separate window within the same indicator. Is there a way to do so? Basically alternate the IsOverlay property between true and false depending on what should be plotted. I have tried the following with no luck:


    // Add plot as overlay to main price panel
    IsOverlay = true;
    AddPlot(Brushes.Red, "Plot1");

    // Add plot to the indicator panel
    IsOverlay = false;
    AddPlot(Brushes.Red, "Plot2");​

    #2
    Hello haakonflaar,

    Thank you for your post.

    The IsOverlay property applies to all plots in the indicator and may not be applied dynamically in the way that you described. My colleague offers some ideas for getting plots on multiple panels here:
    Hello. I'm confused around how to add custom series to my chart from my NinjaScript. I was looking at the AddPlot / Values methodology, but wasn't clear to me how I specify which panel the value gets displayed on. Specifically, I would like to plot a value on the main panel which is an arithmetic function of the SMA, and


    To plot on two different panels, you would need to use two different indicators; one with IsOverlay set to true and the other with IsOverlay set to false. That said, as Jesse mentioned in that post, you could use a strategy that calls both indicators to automate setting up both indicators together in one go. For more information about the drawing objects route that he mentions, please see this additional post that goes into more detail about plotting with IsOverlay set to true and DrawOnPricePanel set to true:
    I have an Indicator that does not currently contain any plots. It uses Series instead and does some custom drawing. If I use AddPlot to add a new plot, can it be added into a separate pane without me having to create a second indicator?


    Please let us know if we may be of further assistance.

    Comment


      #3
      Hello, Emily, My strategy uses 5 plots.
      I want to draw 3 plots on main price panel and 2 plots on separate sub-panel.
      is this possible?
      I'd like to know the possibilities in one script and not in the way you mentioned.​

      Comment


        #4
        Hello truepenny,

        Thank you for your post.

        You cannot plot in more than one panel from a single script, it is instead advised to create two separate indicators. One that plots to the Price Panel and one that draws to the indicator panel.

        Then it is possible to have a strategy place the indicators in a specified panel (two separate panels), but this is only possible because the added indicators are managed by the strategy.

        Please let us know if you have any further questions. ​

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        563 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        329 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X