See Topic https://www.mql5.com/en/forum/144092 and you can read why this was made.
This version is the last I made to have in real time also on chart displaying correct way.

[EA] - Charles-1.3.7
Improvements to the previous version.
A new indicator to see the range bound period and an Expert Advisor similar need help
I wrote a new indicator to find the range bound period, then we can place order when the price break the range bound.
RSI Breakout
The Expert Advisor places buy trades when RSI crosses above 73 and sells when it drops below 27. A trailing stop based on ATR protects profits.
maximus_vX lite
Expert Advisor opens deals based on price consolidations