Your own scripts
Writing one · What runs · Limits and safety
Writing one
Open the Script Editor in the bottom bar, or New Pine script in the indicator list. Run check tests it, Save keeps it with your account and Add to chart draws it. A script's own settings window is made from its inputs and plots.
What runs
Pine version 5 and 6 run on BetaCharts's own engine; JavaScript works too. Extra values give order flow: delta, buy_volume, sell_volume and oi.
Not built: strategies, libraries (import and export), enum, versions before 5, plotcandle and plotbar, and request functions other than security and footprint. request.security reads only the chart's own symbol, on the same or a higher timeframe. A script that needs something missing stops and names it; nothing is guessed.
Not every function has been compared with another system. Check a script's results before you rely on them.
Limits and safety
Scripts run in your browser, cut off from your account, and are stopped if they run for too long. Heavy work on every bar can be slow on long charts. Only run scripts whose purpose you understand.