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 StockTrader88, 03-06-2021, 08:58 AM
    45 responses
    3,992 views
    3 likes
    Last Post johntraderuser2  
    Started by TAJTrades, Today, 09:46 AM
    0 responses
    7 views
    0 likes
    Last Post TAJTrades  
    Started by rhyminkevin, Yesterday, 04:58 PM
    5 responses
    62 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by realblubb, Today, 09:28 AM
    0 responses
    8 views
    0 likes
    Last Post realblubb  
    Started by AaronKoRn, Yesterday, 09:49 PM
    1 response
    19 views
    0 likes
    Last Post Rikazkhan007  
    Working...
    X