AlertaScript
AlertaScript: your own indicators and strategies
AlertaScript is AlertaChart's language for indicators and strategies. With a few lines you can draw your own lines, zones, labels and tables on the chart, or test a trading idea on past data. It is available on every plan; how many of your scripts can run on one chart depends on the plan: 2 on Free, 4 on Starter, 8 on Trader, 12 on Pro and 15 on Elite.
The editor
Open the editor from the Indicators menu. It is a window you can move around while the chart stays visible. Write or paste your script, press Run and the result appears on the chart. Errors are shown with their line, so they are easy to fix.
What a script can do
- Plot lines, histograms, bands and filled areas on the chart or in their own panel
- Draw labels, boxes, lines and tables
- Offer settings (inputs) that you can change later from the indicator's gear
- Raise alerts from conditions in your script (from the Pro plan; on Binance, Bybit, OKX and Coinbase spot and perpetual pairs and Hyperliquid perpetuals they are checked around the clock, even with the app closed; elsewhere while AlertaChart is open)
Your script library
Every script you save is in your library under My scripts in the Indicators menu. From the Trader plan the library is saved to your account and appears on all your devices.
Moving from other platforms
The language is familiar to anyone who has written indicators elsewhere, which makes it easier to bring older scripts over. Some functions may still need small changes; the editor tells you exactly where.
Testing strategies
A strategy script places simulated trades on past bars, and the Strategy tester opens under the chart with the result. Key stats come first — total P&L, maximum drawdown, profitable trades and profit factor — above a chart of cumulative P&L against buy and hold. Below them are profit and loss by signal and by direction, a trade analysis (returns distribution, winning and losing streaks, the best hour, day and month), a performance analysis by period with margin usage and drawdown periods, and the list of trades with each trade's run-up and drawdown. Strategy settings change the initial capital, order size, pyramiding, commission and slippage without touching the code. You can also limit the test to a date range, switch between the strategies on the chart and export the report as a CSV file. After you close the tester, the report icon in a strategy's row opens it again.
Sharing
Publish a script to the Community so others can install it with one click, or keep it private. Installed community scripts arrive switched off, so you can look at them before running them.
Tips
- Start from a small script and add to it step by step.
- Keep your inputs clearly named; they appear in the settings window.
- A strategy test on past data is not a promise about the future.