ADR MT5 open source Help

Im working on automating a strategy but I need the ADR (Average Daily Range) Indicator in order to proceed. It’s in MT4 but it doesn’t support multiple timeframes. I need it on MT5 open source. If anybody knows I would greatly appreciate the help.

Ignore the EMAs but it looks like this the 2 red lines showing past support and resistance based on the period that you pick.