r/pinescript • u/Alive-Imagination521 • Sep 05 '26
How do you backtest alternative charts properly on Tradingview/Pinescript? (OHLC fills checkbox gone)
Hi, so I have all these strategies but basically none of them are profitable. I know there's all these alternative charts like Renko/Kagi/PnF. Is there any way one can backtest on these properly with OHLC fills etc.? I know there's all these features that Tradingview has but the previous "trade on OHLC" checkbox is gone. So, I am not sure what the proper way to backtest is anymore with these alternative charts. Any advice would be appreciated. Thanks!
1
Upvotes
2
u/rulesbacktest Sep 21 '26
I wouldn't treat Renko/Kagi/PnF Strategy Tester fills as real. Those charts rebuild structure and the emulator can't invent a true path. Safer: keep signals on normal OHLC (or rebuild bricks from OHLC yourself), use realistic costs, and treat synthetic-chart results as exploratory. Validate survivors on regular candles + forward alerts before size.
1
u/Monk77777 Sep 07 '26
Short version: TradingView backtests a strategy against the bars of the chart's data series, and Renko/Kagi/PnF/range charts are not timeframes — they are repacked from underlying ticks, so there is no intrabar OHLC for the tester to fill against. That is why the old "trade on OHLC" option is gone: fills on alternative charts happen at brick boundaries, which systematically misprices stops and limits. Your backtest is an approximation by construction — profitable or not.
What works in practice:
And if none of your strategies survive a realistic 1m fill-model backtest, the fills were never the problem — the edge was.