Friday Highday! - page 2

 
Vladislav Boyko #:

These functions may return an incorrect value if you do not have the D1 chart window open for that symbol.

Either attach this only to the D1 chart (of the same symbol), or check the correct execution of these functions.

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 - MQL4 programming forum - Page 3 #26.4 (2019)