Sidechair

Porting from TradingView

Browse the reference

Most version 5 and 6 indicators run as written. Paste, compile, add to chart.

Open the Pine Editor

What runs as written

Sidechair runs Pine Script versions 5 and 6. Paste the full source into the Pine Editor, including the //@version line, and add it to a chart.

Inputs, plots, fills, shapes, background colours, labels, lines and boxes draw the way you expect. Arrays, maps, user-defined types, enums and methods all work.

Version 4 and older

Scripts written for version 4 or earlier don't compile. The editor says so on the first line.

Convert the script to version 5 or 6 first, then paste the new source. The main changes are the namespaces: study() becomes indicator(), sma() becomes ta.sma(), and so on.

Not supported yet

These parts of Pine compile but don't run on Sidechair yet. A call to one returns na and the editor shows a warning, so the rest of your script still draws.

NamespaceBuilt-ins not running yet
syminfo.*29
request.*11
footprint.*9
volume_row.*8
box.*6
earnings.*4
chart.*3
dividends.*3
label.*2
runtime.*1
Other built-ins3

Strategies

Strategy scripts compile and draw their plots. Each strategy.* page says how its orders behave on Sidechair today.

Check the numbers

Values can differ slightly when the bars differ. Compare on the same symbol, timeframe and session before you trust a signal.