I see "The requested historical offset (X) is beyond the historical buffer’s limit (Y)" error

To ensure the continued availability of computing resources for all TradingView users, we limit the historical buffer that is available to Pine variables on each script execution. If a script requests a value outside of that buffer, it raises a runtime error. 

If you have access to the source code, resolve the error by fixing the requests that go out of bounds or increase the buffer size, as described in this Pine Script® User Manual article. Otherwise, inform the script’s author of the error.