ADR

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

ADR

Postby Apprentice » Thu May 16, 2019 5:55 am

EURUSD m5 (05-16-2019 1100).png

Based on request.
viewtopic.php?f=27&t=68459
ADR.lua
(5.58 KiB) Downloaded 448 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ADR

Postby 7510109079 » Fri May 17, 2019 6:42 am

Nicely done Apprentice!

Can I ask how is the ADR % calculated?
i.e. what is it a percentage of?

thx
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: ADR

Postby Apprentice » Fri May 17, 2019 8:00 am

ADR is the average of Range
The range is calculated as high -low
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: ADR

Postby 7510109079 » Fri May 17, 2019 9:07 am

But the actual percentage amount at the beginning. How is that calculated?
Am i correct saying it is the percentage of the current days move compared to the 20 period ADR?
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: ADR

Postby Apprentice » Sun May 19, 2019 4:13 am

rate = val * d1_source:pipSize() / ((day10_value + day20_value) / 2);
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider] and 38 guests