Visible range in dollars nt8 - futures io
futures io



Visible range in dollars nt8


Discussion in NinjaTrader

Updated
    1. trending_up 192 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 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
 

Visible range in dollars nt8

(login for full post details)
  #1 (permalink)
 Sezor 
Nmes France
 
Experience: Intermediate
Platform: NinjaTrader, Mt4
Broker: NinjaTrader Brokerage
Trading: Oil
 
Posts: 50 since Nov 2010
Thanks: 81 given, 16 received

God day all
Can anybody point me to some Ninja 8 code for displaying the
dollar range of the current screen?
I had it somewhere in my notes but blowed if I can find it.
Ninja 7 code is

protected override void OnBarUpdate()

public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
{
if (Bars==null || ChartControl==null)
return;
double mymax = double.MinValue, mymin = double.MaxValue;
//Print("first visible "+FirstVisibleBar+", last visible "+LastVisibleBar);
for (int i = Math.Min(CurrentBar,this.FirstVisibleBar); i >= Math.Max(0,this.LastVisibleBar); i--)
{
mymax = Math.Max(High[i],mymax);
mymin = Math.Min(Low[i],mymin);
}
double range = mymax - mymin;
double rangeDollars = (range * Instrument.MasterInstrument.PointValue);
DrawTextFixed("info",String.Format("Visible range {0:C}",rangeDollars),TextPosition.TopLeft,Color.Navy,font,Color.Empty,Color.Empty,0);

base.Plot(graphics,bounds,min,max);
}

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Visible range in dollars nt8


Last Updated on April 7, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

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