There was a small typo error in my ‘Yearly Quarterly Monthly Weekly Daily H4 H1 OHLC Lines’ indicator that can be found in the library here:
https://www.prorealcode.com/prorealtime-indicators/candlesticks-ohlc-yearly-quarterly-monthly-weekly-daily-h4-h1/
The library post has been updated to remove this error and the ITF file amended to a new v1.1.
If you have already downloaded the indicator then either download the new version or correct the error by removing the small section of code from the first version as described in the library post comments section.
Sorry for any inconvenience.