Documentation
13. v0.8.8 — Strategy plot() overlays on the chart
- Created
- Jul 7, 2026
- Updated
- Jul 7, 2026
Released 2026-07-07. A backtested Pine strategy now renders its own visual outputs on the chart, not just its buy/sell trade markers. Follows v0.8.7.
Added
- A Pine strategy's
plot()/plotshape/fill/bgcolor/ … now draw on the chart. Previously the strategy path drew only buy/sell trade markers and dropped every plot. Now a strategy that plots its moving averages (or any other series) shows them on its pane, exactly as a Pine indicator would — full visual parity, because they run through the identical rendering pipeline. - A sample
sma-cross-over.pinestrategy that plots its fast/slow SMAs, so the behavior is visible out of the box.
Technical notes
- A Pine strategy and a Pine indicator are the same language:
plot()and friends run in a strategy exactly as in an indicator. Rather than re-implementing a subset of the visual IR, fractal registers the ran strategy source as an ephemeral Pine indicator and lets the existing chart-indicator pipeline draw it. These overlay instances are derived, never persisted — they render on the chart only, so they stay out of the indicator legend/editor and the saved indicator list. - Trade markers still come from the broker report (not
plot*), so nothing double-renders. Strategy overlays are suppressed during replay, mirroring how trade markers behave. A strategy with no plottable output registers nothing.
Next steps
Back to the release list.
Next: Release Notes