# Trading rules that desk, risk and audit all read the same way.

> In a bank, a rule is only as good as your ability to show what it does. AlgoBarsX writes each strategy out in plain English, fills orders by written rules, and gives the same test result every time.

Source: https://algobarsx.com/for/banks/

## What gets in your way.

- **Code only quants can read** Risk and audit rely on a summary someone wrote by hand.
- **Results that cannot be repeated** A test that gives a different answer next month is hard to defend.
- **Slow change** Small rule changes queue behind big IT projects.

## How AlgoBarsX helps.

- **A description made by the compiler** The plain-English text comes from the compiled code, not from a person. It cannot drift from what runs. [Read more](https://algobarsx.com/docs/what-is-algobarsx/)
- **The same answer, every time** Same script, inputs and data give the same result, to the last digit. [Read more](https://algobarsx.com/docs/terminal-tools/)
- **Written, numbered fill rules** Each of the 24 rules has an id that does not change. A change in behaviour gets a new rule. [Read more](https://algobarsx.com/docs/#execution-rules)
- **Every run kept** Each test is stored with the code that produced it. [Read more](https://algobarsx.com/docs/terminal-tools/)
- **Limits in the script** Position, loss and drawdown caps are reviewed with the strategy, not apart from it. [Read more](https://algobarsx.com/docs/guards/)
- **Edits explained first** Changing a running script shows what the change would do before it is made. [Read more](https://algobarsx.com/docs/deployments/)

## Limits live in the code, where everyone sees them.

Caps sit at the top of the script. When the daily loss limit is hit, open trades close, waiting orders are cancelled, and new entries stop until the next day. A drawdown limit pauses the strategy until a person restarts it.

```algobarsx
strategy "Language Tour"
    markets: EURUSD, GBPUSD
    bars: 15m
    evaluate: bar_close
    max_open: 3
    max_open_per_side: 2
    direction: both
    opposite: reverse
    pyramiding: 3
    min_distance: 20 pips
    max_daily_loss: 3%
    max_drawdown: 10%
    trade_only: within sessions london, new_york
```


> **What to check with us first.** AlgoBarsX is in beta, so syntax and features may still change. There is no public API yet. Ask us about anything your firm needs in writing, such as where data is kept, audit logs, single sign-on, uptime and support hours. We will tell you plainly what exists today, what is planned, and what we do not do. Your licences, approvals and client rules stay your job.

## Good questions.

**Can it run inside our own environment?** Ask us. Today it runs on the AlgoBars platform, and there is no public API yet.

**Does it replace our risk and compliance systems?** No. It gives you readable rules and repeatable tests. Your controls, approvals and records stay yours.

**Will live results match a backtest?** No. Tests use past prices and leave out spread, fees, swaps and slippage. Past results do not tell you what will happen next.

**What does beta mean for us?** The language works and passes 678 tests on every build. It is still being improved, so some syntax and features may change. Plan for that.

## Important

Trading is risky and you can lose money. AlgoBars is software, not a broker or an adviser. Backtests are hypothetical and leave out spread, fees, swaps and slippage. AlgoBarsX is in beta.
