Complementing my previous message:
I don´t know the formula you used in this one, but if you could take a look here:
https://stockbeep.com/how-to-calculate- ... ay-tradingIt also explains how to do it properly for use it intraday.
So in the MT5 version we could have the option in the indicator settings:
Intraday - True/False
If set to "false", then we should use the indicator in higher timeframes (daily, weekly), if set to "true", then obviously use the intraday version as explained in the link provided.