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)
The NT8 ATR indicator works on the charts selected period. So if you select 5 min chart it is based on bars of 5 minutes, select 300 tick chart and the ATR is based on 300 tick bars. Is that what you need or is there something more that you are looking for?
The ATR that ships with NinjaTrader displays in points. If you divide the points by the ticksize, you will get the ticks.
Just open the NinjaScript editor, then open the ATR indicator and replace lines 56 and 60 with the code below.
Line 56: Value[0] = (high0-low0) / TickSize; // the value is now calculated in ticks as opposed to points
Line 60: trueRange = (Math.Max(high0, close1) - Math.Min(low0, close1)) / TickSize; // the value is now calculated in ticks as opposed to points and code efficiency has been improved as well
Then save the file under a new name such as ATR2 and compile it via F5.
Not tested.
The NinjaTrader inbuilt ATR indicator - and including this modification - cannot be applied to other input series than price. Here is more room for improvement.
That indicator is exactly what I've been looking for . But I load it with default settings and get this error message . I've also tweaked the settings but still get this error ,
"Unhandled exception . Object reference not set to an instance of an object . "
What settings do you use ? Does it only work on a Live account , no Demo accounts ?
I have the same error as well. The account I am using is a Live account. Play around with different time frames, 5 minutes, 15 minutes, 1 minute, and wait for a few minutes. Whenever it works, it works well. Good luck.