Do not double post!
I have deleted your other post.
It would be very much appreciated if I can have MTF version of this indicator
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.) General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06 Messages Editor
On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values. Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4 2019.05.20
This is my suggestion (which came from tsd 2010 and from tsd 2008):
Just to remind:
Coders (any coder) are coding for free:
and Freelance section of the forum should be used in most of the cases.