NexusFi: Find Your Edge


Home Menu

 





NT7 - Programming a Scale Justification=Overlay?


Discussion in NinjaTrader

Updated
    1. trending_up 5,456 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?
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 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,689

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