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)
Is there an indicator for Ninjatrader that will calculate the ADR for the week, month and further for the CL contract? If so, where can I get the download. Thanks
Can you help answer these questions from other members on NexusFi?
This thread is about session indicators and how to trade them.
I have coded quite a few indicators for NinjaTrader, which I would like to explain, and for which I do regular updates. So far I have posted in various threads to discuss their features …
you could also go to the ninjatrader support forum. there you'll find the excellent session pivots v42 indicators by @Fat Tails (same as in the elite section here).
there're 6 indicators included. you'll need the anaCurrentDayOHL indicators (day, week, month). those indicators have an option to display the average daily range
For a 4 days period(or weeks or months or hours) it is:
( H1 - L1 + H2 - L2 + H3 - L3 + H4 - L4 ) / 4
where :
H1= High of the first day
L1= Low of the first day
H2= High of the second day
L2= Low of the second day
H3= High of the third day
L3= Low of the third day
H4= High of the fourth day
L4= Low of the fourth day
( H1 + H2 + H3 + H4 ) / 4 is the formula for a simple moving average of the highs with a period of 4
and
( L1 + L2 + L3 +L4 ) / 4 is the formula for a simple moving average of the lows with a period of 4.
So what do you have to do?
Plot a simple moving average of the highs(you pick the period) SMA(high)
Plot a simple moving average of the lows(you pick the same period) SMA(Low)
and look at the latest values for yesterday's chart
Calculate SMA(high) - SMA(Low) and it will give you the ADR for today!!!!!!!
for example in freestockcharts.com by moving the cursor over the pervious bar you will see the values for SMA HIGH and SMA LOW(circled in yellow) in this example 516,39 - 451,72 = 64.67
The conclusion I came up with was in the back of my mind and realised there was more to it...
there is an indicator that will plot the difference between 2 moving average and readily available too: the MACD!!!!!!
So what I am saying is that you can display the ADR if you can customise the MACD in you software!
Default setting are MACD (12/26/9) and averages are exponential, you need to be able to switch from exponential to simple, and you will need to be able to switch form based on closes to based on highs and based on lows
if you want the ADR for a 10 day period, the MACD would be MACD(10H/10L/1)
where
the first 10H is a simple moving average of the highs of the last 10 periods
the second 10L is a simple moving average of the lows of the last 10 periods
the 1 is useless so by using this parameter it will follow the line plotted line or histogram but if you feel you need it, adjust the period accordingly.
So ADR is just a special MACD if your software is versatile enough to be customised!!!!!!