What AlgoBarsX is
One language for strategies, indicators, alerts and libraries.
AlgoBarsX is the language AlgoBars runs on. You describe a strategy, an indicator or an alert in a few readable lines, and the same script is used by the chart, the backtester, the alerts engine and live automation. There is one definition of what your rule means, so you never rewrite it for a different tool.
There are four kinds of script. The first word of the file says which one it is.
| Kind | What it is for | What comes back when you run it |
|---|---|---|
strategy | Places and manages trades. | A backtest, a report and a chart. It can be deployed to a demo or live account. |
indicator | Calculates and draws. It can publish values for other scripts to use. | The chart it draws and the values it exports. |
alert | Watches a condition and sends a message. | The messages it would have sent, and the ones it held back because of its own repeat and cooldown settings. |
library | Holds functions and constants you reuse. | It is checked and described. Other scripts import it by name and version. |
Every script is also translated back into plain English by the compiler, so you can check that it says what you meant. That text is generated from the compiled code. If the English is wrong, the code is wrong.
You do not have to write code. The AI strategy builder and the generator both produce AlgoBarsX. This documentation is for reading what they wrote, changing it, and building your own from scratch.