Attachments forums

List of attachments posted on this forum.


All files on forums: 153393

Re: Various Indicators - (MT5)

milanbenkoczy, Tue Jan 07, 2025 12:34 am

Hello mrtools,

I would kindly ask for your help with an ADR indicator I have made myself in MQL5. It should plot an upper adr line measured from the low of the day and a lower adr line from the high of the day. basically a dynamic range, which changes colors and locks when one adr line is reahced by price.
Everything works fine, except the locking mechanism. I can't wrap my mind how to carry out such a method where both adr lines are locked when price breached one of the adr levels.

Briefly if price reaches the upper adr line that is measured from the daily low, the lower adr line must be locked and because it is measured from the high of the day and the lock should happen at the point of breach, the lower adr line should be excatly at the low of the day, hence making the distance between the two line excatly 1 adr. Vice versa the same thing.

There is also an ADR panel that displays the current adr value which is very helpful.

Sadly I could not carry out the locking logic and something always went wrong.

Thanks for your time!
All files in topic