NT7 - Programming a Scale Justification=Overlay? - futures io
futures io futures trading



NT7 - Programming a Scale Justification=Overlay?


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

NT7 - Programming a Scale Justification=Overlay?

(login for full post details)
  #1 (permalink)
New Orleans, LA
 
Experience: Intermediate
Platform: xtrader ADL, NinjaTrader7
Trading: Guitar and CL
 
chrisflow's Avatar
 
Posts: 15 since Feb 2010
Thanks: 54 given, 5 received

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 futures io?
Webinar: Finding your own way in trading w/Adam Grimes
The Elite Circle
If ES tracks SPX, why do support/resistance, Level 2, vo …
Emini and Emicro Index
Automating strategies on multiple charts with same symbol
TradeStation
OFA (Order Flow Analytics) Licence
NinjaTrader
SimplerOptions
Trading Reviews and Vendors
 
 
(login for full post details)
  #3 (permalink)
New Orleans, LA
 
Experience: Intermediate
Platform: xtrader ADL, NinjaTrader7
Trading: Guitar and CL
 
chrisflow's Avatar
 
Posts: 15 since Feb 2010
Thanks: 54 given, 5 received


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
 
(login for full post details)
  #4 (permalink)
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
 
NinjaTrader's Avatar
 
Posts: 1,575 since May 2010
Thanks: 184 given, 2,436 received

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
The following 2 users say Thank You to NinjaTrader for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > NT7 - Programming a Scale Justification=Overlay?


Last Updated on May 27, 2010


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts