NM
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Displaying the ADR on my chart?
Collapse
X
-
Displaying the ADR on my chart?
I might be missing it here but - can I display the calculated ADR on the chart and if so where would I find the function to be able to do this?
NM -
Hello nmcintyre,
Thank you for your note.
ADR is not included with NinjaTrader by default, but I was able to find a free third-party version here: http://www.ninjatrader-support2.com/...ad.php?t=16496
To import this indicator in to NinjaTrader, please follow the steps listed here: http://www.ninjatrader-support.com/H...e.html?Import1
Please let me know if you have any additional questions or if I may be of assistance with anything else.KyleNinjaTrader Customer Service
-
Cheap Cheat
What is the formula for ADR?
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
you can "rearrange" the formula:
(( H1 + H2 + H3 + H4 ) - L1 - L2 - L3 - L4) / 4
(( H1 + H2 + H3 + H4 ) - ( L1 + L2 + L3 +L4 )) / 4
( H1 + H2 + H3 + H4 ) / 4 - ( L1 + L2 + L3 +L4 ) / 4
and then you realise that:
( 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!!!!!!!
Comment
-
Macd
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!!!!!!
Comment
-
Your conclusion is correct, but you would need to code a MACD which
- allows to use different input series for the two moving averages
- has the EMAs replaced with the SMAs (Awesome Ocsillator)
It is much simpler to use the inbuilt Range() indicator and apply a SMA to the range indicator. You do not even need to code anything. Just add a SMA to a subpanel and select "Range()" as input series.
I have attached a chart below.
Comment
-
thanks
Harry
the last time I used NinjaT was a long long time ago.... it was very basic and buggy, could not keep up with faster that normal market conditions ....but I keep reading it is very different nowadays.
What I came up with is 2 general ideas but with you're knowledge you figured out a way to do things in a simple manner!
Cheers
Dan
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,603 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
12 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment