Documentation
1. Pine Script Overview
- Created
- Jun 16, 2026
- Updated
- Jun 16, 2026
Fractal Chart supports Pine Script v6 — the same scripting language used on TradingView — for writing custom indicators and backtest strategies. You can paste a Pine Script v6 indicator or strategy directly into the editor and run it on your chart.
What Pine Script lets you do
- Write indicators that plot lines, histograms, markers, candles, shapes, drawings, and background colors on the chart — the same visual surface as TradingView.
- Write strategies that place and exit trades during a backtest, with a full broker simulation: position sizing, commission, slippage, pyramiding, and exit brackets.
- Fetch data from other symbols or timeframes using
request.security— for example, plot the daily close on an intraday chart, or pull a correlation signal from a different instrument. - Trigger alerts from indicator logic using
alert()andalertcondition()— these fire through Fractal's normal alert channels (toast, browser notification, sound, webhook).
Pine Script v6 vs v5
Fractal supports Pine Script v6 (the current version as of TradingView's @version=6 declaration). Pine v5 scripts generally run without changes since v6 is backward-compatible for the features covered here. Pine v4 and older are not supported.
Where to write Pine
- Custom indicators — open the indicator picker, choose Custom indicators, and click New (or edit an existing one). Pine is the default language.
- Backtesting strategies — open the Strategy Tester, go to the Compose tab, and select Pine Script from the language picker.
What's in this section
- Writing Indicators — plots, inputs, drawings, alerts, and
request.security. - Writing Strategies — entries, exits, and broker configuration.
- Language Reference — what language features and built-in namespaces are supported.
- Limitations — known gaps and features not yet supported.
Next steps
Next: Writing Indicators