Referencing daily pip change and ADR
Created at 25 Sep 2018, 09:47
RY
Referencing daily pip change and ADR
25 Sep 2018, 09:47
Hello everyone,
I was wondering if someone would be kind enough to help me with a simple code.
The code I want to do is something as follows:
"if daily pip change >= 1/2*ATR, send me email"
where daily pip change is
ATR is average true range indicator for D1 or daily timeframe with 22 periods, of any forex pair (or a group of forex pairs as specified by me).
When I say >= 1/2 of ATR, I mean regardless of negative or positive value.
In practice, this is how it should go - if for example, GBPUSD has an ATR of 120 pips, and If today, GBPUSD hits +60 OR -60 pips or greater, I get an e-mail.