Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator with both overlay and separate pane

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

    indicator with both overlay and separate pane

    I'm a newbie to Ninjatrader.

    Suppose I have an indicator where I have two lines, e.g. two moving averages that I need to draw over the price and a third indicator, e.g. difference of two moving averages that I want to draw on a separate pane. How can I do this?

    From browsing the documentation, the way to choose overlay or not is to put a line

    Overlay = true;

    in the Initialize() function/method, e.g.

    protected override void Initialize()
    {
    Add(new Plot(Color.Orange, "SMA1"));
    Add(new Plot(Color.Orange, "SMA2"));
    Add(new Plot(Color.Orange, "SMADiff"));
    Overlay = true;
    }

    How can I change this to allow overlay for some plots (e.g. SMA1, SMA2) and a separate pane for others (e.g. SMADiff) ?

    #2
    Hello uday12,

    Thanks for your post.

    Regrettably this is not possible (plotting in more than one panel in the same indicator). The solution here would be to separate into two indicators. Alternative would be to manually add the SMAs to the main panel and use the indicator to show the difference in an added panel.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sjsj2732, Yesterday, 04:31 AM
    0 responses
    24 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    282 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    280 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    131 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X