Documentation

Documentation

12. v0.8.7 — Buy-&-hold basis fix and intrabar run-up

Created
Jul 6, 2026
Updated
Jul 6, 2026

Released 2026-07-06. Bumps the Pine Script engine (piner) to v0.6.0, following up on v0.8.6's adoption of piner's derived strategy metrics.

Changed

  • Buy-&-hold now benchmarks from the strategy's first trade, not always the chart's second bar. Matches TradingView's stated basis ("from when the strategy's first position was opened"). A strategy that doesn't open its first position until well into the chart previously had its buy-&-hold return computed from the very start of the data — the benchmark now starts flat until the first entry fill, then tracks price from there. Runs with no closed trades keep the old basis (the second bar's open). The buy-&-hold line on the equity chart and the reported buy-&-hold stats now always agree, since both use the same entry point.
  • Max run-up for Pine strategies now matches TradingView's method. It's computed from intrabar equity extremes, mirroring how max drawdown is already computed, instead of a close-only scan of the equity curve — the two are now on the same (more accurate) basis.

Technical notes

  • Piner 0.6.0 also adds a larger set of TradingView Strategy Report ratios to its derived metrics (e.g. average win/loss ratio, largest win/loss as a percent of gross profit/loss, close-to-close run-up/drawdown phases) that fractal doesn't yet surface in the strategy tester UI — a candidate for a future release.

Next steps

Back to the release list.

Next: Release Notes