# Customized Moving Average Directional Movement

v10.3

When Welles Wilder created his ADX indicator (and the Directional Movement idea) he was doing all the math by hand. You can still see the worksheets he used in his book. His way to make the Average of some numbers was just to take yesterday’s value, divide it by the period, multiply this number times period minus 1 and add today’s value divided the period. Over time this became the Wilder’s average. Since he used normally a 14-period average he was making only 4 operations instead of 15 …. and that was a lot of time saved!!

Needless to say that his average was not the most precise (I could write a lot more on averages) but it was the quickest to calculate and good enough to make his indicators to work fine.

Today with the help of computers we can get much more. I wrote the directional movement code with the possibility to change the type of moving average used. I personally use a weighted moving average and the performance of Wilder’s indicator is, in my opinion and experience, much better.

Blue skies!!

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

1. • 10/31/2017 #

Hi Gabri
Is there a small mistake in the TR computation: this is “mioTR=max(abs(high-close[1]),max(abs(low-close[1]),range))” in lieu of “mioTR=max(abs(high-close),max(abs(low-close),range))” ?

2. • 10/31/2017 #

it’s seems correct to me https://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:average_true_range_atr

3. • 10/31/2017 #

I looked at your page: It’s written:
Method 2: Current High less the previous Close (absolute value)
Method 3: Current Low less the previous Close (absolute value)
This is why I think there’s a small mistake in the TR computation: this is “mioTR=max(abs(high-close[1]),max(abs(low-close[1]),range))” in lieu of “mioTR=max(abs(high-close),max(abs(low-close),range))”

4. • 10/31/2017 #

You are right, I will change it, Thank you!!

5. • 10/31/2017 #

Nope…I THANK YOU FOR ALL THE GOOD WORK YOU DID 😉

Register or

#### Likes

Related users ' posts
Nicolas
2 months ago
3
Indicators
Ein sehr schöner Indikator, vielen Dank. Wenn ich den Indikator importiere und starte hat d...
das ist in der Tat normal, Sie müssen die Auf- und Abwärtsfarbe direkt im Parameterfenster d...
Bonjour Nicolas, merci pour cette merveille, je l'utilise en compl2ment du "magical buy sell...
Bruno Carnazzi
1 year ago
0
Indicators
Thomas
3 years ago
v10.3
12
Indicators
Hi Thomas, thanks for your explanations. Which indicator do you use in the screenshot ...
Thats On Balance Volume and Bollinger or SMA or what you want. It shows me the volume flow. ...
@MAKSIDE I would be grateful if you send me your version. have a nice day
Vonasi
3 years ago
v11
6
Indicators
Superbe !
An updated version with a bug fix can be found here: https://www.prorealcode.com/topic/dis...
hey Vonasi is it possible you can help me get this indicator to show how much a market mo...
Vonasi
3 years ago
v11
0
Indicators
Vonasi
3 years ago
Vonasi you're a beast !!! ;-)))
Amazing indicator , you are pushing PRT to the limit! But looking at the scatter its not c...
xpiga
4 years ago
9
Strategies
Hello, currently, I don't have the same result as above and don't no if it works good in...
Hola. Me gustaría contactar contigo para ver la estrategia..
Has someone already tested in real ?
Vinks_o_7
4 years ago
3
Indicators
I've always wondered how to make the ADX faster, thank you!
You welcome !
Another variation that may be more accurate : we calculate the average of normalized DI's in...
Nicolas
4 years ago
v10.3
8
Indicators
Great, thanks a lot Nicolas !
Top Nicolas ! Merci
Thank's! Great indicator:)
Oscar Gil Balaguer
5 years ago
v10.3
0
Indicators
Nicolas
5 years ago
v10.3
0
Indicators
Nicolas
5 years ago
v10.3
12
Indicators
bonjour nicolas j'aime bcoup votre indicateur
Script 'Adaptive ATR' has been saved line 24: no viable alternative at input 'lr' Gettin...
Domenec
5 years ago
v10.3
6
Indicators
Hola Domenec, en la descripción hablas del indicador velas de colores, no lo encuentro en la...
Hola Dron mira en el blog deinversoratrader.com en formacion indicadores ahi hay varios grat...
Domenec
5 years ago
v10.3
2
Indicators
simplemente impresionante Dom...te sigo en youtube. Me ha gustado tu canal. Gracias por comp...
Nicolas
5 years ago
v10.3
0
Indicators
gabri
5 years ago
0
Strategies
gabri
5 years ago
3
Indicators
It is possible to apply this indicator ON the chart , because when I try to apply the formul...
Yes, just apply it on the price chart by using the wrench on the left upper side of your pri...
Hi Nicolas, thanks for the reply, I managed to apply the indicator on the chart.
odin
5 years ago
4
Screeners
hi luisella, i think breadth indicators a not available in pro realtime, because you the cal...
Thank you
to good to be true dosent do anything))
Nicolas
5 years ago
v10.3
2
Indicators
Thanks Nicolas. I read somewhere that in the calculation, we should round the value of the A...