Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Can somebody please help me write code so that the range of the bar is below the candle stick for each candle(ninjascript) instead of in the range panel below the chart? pretty please:-)
Can you help answer these questions from other members on NexusFi?
anniebee321, if you go to the free section at my site there is a nice RangeBarTargets indicator that might fit your needs (assuming you are talking about Range bars). It also works with RangeAlt, NoGapRange, MedianRenko, SbSRenko and Point-O bars. Can't hurt to try, it's free!
To do this, on each BarUpdate event, calculate the range, High[0]-Low[0], and then use the DrawText method to display the value of the range under the price bar. The x value is 0 (Current Bar) and the y value would be Low[0] minus n*TickSize, where n would be a user selectable integer.
The indicator would be installed in the same panel as the price series, with the same scale justification (left or right) as the price series.
The last I heard, Range = High - Low, not the absolute value of Open minus Close
I changed the indicator accordingly.
I also updated the comments and captions in the code. The indicator applies range markers, not "bar numbers".. .
Let me know if you would like a voice that speaks the range of each bar after that bar closes. It's really pretty easy to code indicators that "talk". I just added a thread on that subject... " Let's teach [AUTOLINK]Ninjatrader[/AUTOLINK] how to talk".