NexusFi: Find Your Edge


Home Menu

 





NT7 - Programming a Scale Justification=Overlay?


Discussion in NinjaTrader

Updated
    1. trending_up 5,339 views
    2. thumb_up 2 thanks given
    3. group 0 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
chrisflow's Avatar
 chrisflow 
New Orleans, LA
 
Experience: Intermediate
Platform: xtrader ADL, NinjaTrader7
Trading: Guitar and CL
Posts: 15 since Feb 2010
Thanks Given: 54
Thanks Received: 5

Anyone know how to set a plot to justify as an overlay, programmatically, in NT7? I'm not talking about overlays over the price. I mean on the panels below the price panel.

I'm programming a indicator and I want to put BOTH an EMA and a StdDev on the same panel (ie Panel 2). I know that this can be done with two separate indicators and later in the Indicator panel, set each one to justify left and right as overlays.. but I need to do this in a script so it is automatically set up this way.

So how would I put the EMA scale on the right and the StdDev on the left?


For example, this doesn't work:

Add(new Plot(Color.FromKnownColor(KnownColor.Black), PlotStyle.Line, "EMAPlot"));
Plots[1].Scale = Overlay;
Plots[1].Scale.Justification = Left;

Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "StdDevPlot"));
Plots[2].Scale = Overlay;
Plots[2].Scale.Justification = Right;


Does anyone know of any documentation for NT7 programming? The included help section absolutely stinks for explaining programming NT7's new features.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
OneChronos Launches First Combinatorial Auction FX Venue …
Currencies
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
The Feds Stagflation Trap -- Negative Payrolls, $91 Oil, …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #3 (permalink)
 
chrisflow's Avatar
 chrisflow 
New Orleans, LA
 
Experience: Intermediate
Platform: xtrader ADL, NinjaTrader7
Trading: Guitar and CL
Posts: 15 since Feb 2010
Thanks Given: 54
Thanks Received: 5


I found how to justify (below). But how to do this for each plot ("EMAPlot" and "StdDevPlot") ? Any suggestions?

ScaleJustification = ScaleJustification.Left; // Indicator will be plotted on the left scale
NinjaTrader Version 7

This fails:
 
Code
                            
Plots[0].ScaleJustification ScaleJustification.Overlay
This fails too:
 
Code
                            
 EMAPlot.ScaleJustification ScaleJustification.Overlay


Started this thread Reply With Quote
  #4 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,715 since May 2010
Thanks Given: 203
Thanks Received: 2,688

You can't do it for each plot. All plots of an indicator are grouped together in terms of the panel and scale they reside on. Thus, you can either set all plots to either display on the Left, Right or Overlay scale.


Follow me on X Reply With Quote
Thanked by:




Last Updated on May 27, 2010


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts