# Teach with code students can read on day one.

> Your students came to learn trading, not computer science. AlgoBarsX reads like the plan you already teach, and it explains every mistake in plain words.

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

## What gets in your way.

- **Students get lost in syntax** Weeks go by on brackets and semicolons before anyone tests an idea.
- **You cannot check 30 scripts by hand** Finding what each student got wrong takes hours.
- **Tools cost money** Every paid seat is a student who might not join.

## How AlgoBarsX helps.

- **Plain words** `when`, `buy`, `risk`, `stop`, `target`. A lesson can start with a working strategy. [Read more](https://algobarsx.com/docs/cheat-sheet/)
- **Mistakes explain themselves** The compiler says what is wrong, where, and how to fix it. Students learn from the message. [Read more](https://algobarsx.com/docs/why-error/)
- **61 examples to teach from** Each one compiles and comes with a plain-English description. [Read more](https://algobarsx.com/docs/#examples)
- **Read-back for marking** Compare what a student meant with what the compiler says their code does. [Read more](https://algobarsx.com/docs/what-is-algobarsx/)
- **Replay for the classroom** Play a finished test back, trade by trade, and talk through each one. [Read more](https://algobarsx.com/docs/terminal-tools/)
- **Free for every student** $0 a month, no card. [See pricing](https://algobars.com/pricing)

## Lesson one can be a whole strategy.

Students read it, change one number, and run it. Then the compiler reads it back to them.

```algobarsx
strategy "EMA Cross"
    market: EURUSD
    bars: 15m

input fast = 20
input slow = 50

when crosses_above(ema(close, fast), ema(close, slow)):
    buy risk: 1%, stop: 25 pips, target: 2R

when crosses_below(ema(close, fast), ema(close, slow)):
    close_all
```

The compiler reads it back:

> When the EMA of the close over `fast` bars crosses above the EMA of the close over `slow` bars, it buys at market, risking 1% of the balance, with a stop 25 pips from the entry and with a target 2R from the entry.

> When the EMA of the close over `fast` bars crosses below the EMA of the close over `slow` bars, it closes all trades.

> **Teach the limits too.** Tests use past prices and leave out spread, fees, swaps and slippage. A good test does not mean a student will make money. Please do not promise results in your course. Trading is risky.

## Good questions.

**Can I share my own course scripts?** Yes. Share them as open `.abx` files so students can read the code, or sealed if you want to keep it private.

**Is there a plan for schools?** Every account is free. If you want your own branded platform, [talk to us](https://algobars.com/contact).

**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.

## 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.
