NexusFi: Find Your Edge


Home Menu

 





NT7 - Programming a Scale Justification=Overlay?


Discussion in NinjaTrader

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




 
Search this Thread

NT7 - Programming a Scale Justification=Overlay?

  #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?
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Quant vue
Trading Reviews and Vendors
Cheap historycal L1 data for stocks
Stocks and ETFs
ZombieSqueeze
Platforms and Indicators
 
  #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,714 since May 2010
Thanks Given: 203
Thanks Received: 2,686

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 Twitter Reply With Quote
Thanked by:




Last Updated on May 27, 2010


© 2024 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 - Privacy Policy - Downloads - Top
no new posts