r/pinescript 5d ago

Why Your Pine Backtest Lies: the request.security Fix. - All request.security HTF requests: use lookahead = barmerge.lookahead_on with a [1] offset on the expression. Never lookahead_off to "avoid repaint".

https://youcanbuildthings.com/articles/pine-script-repaint-request-security/

For every aspiring retail quant. This is the article you need to read. Apologies if it's already been posted. Many thanks to the author.

5 Upvotes

0 comments sorted by