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

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.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by swestendorf, Today, 11:14 AM
    1 response
    1 view
    0 likes
    Last Post swestendorf  
    Started by Sparkyboy, Today, 10:57 AM
    0 responses
    4 views
    0 likes
    Last Post Sparkyboy  
    Started by TheMarlin801, 10-13-2020, 01:40 AM
    21 responses
    3,917 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by timmbbo, 07-05-2023, 10:21 PM
    3 responses
    156 views
    0 likes
    Last Post grayfrog  
    Started by Lumbeezl, 01-11-2022, 06:50 PM
    30 responses
    812 views
    1 like
    Last Post grayfrog  
    Working...
    X