Free to use · Now in beta

Write your trading rules in plain words.

AlgoBarsX is a simple coding language for traders. You type a rule. It reads the rule back to you in plain English. Then you test it on past prices.

  • $0 a month
  • No card needed
  • Not a trial

Try it. Build a rule.Tap any button. Watch the code and the words change.

Buy when…
Risk per trade
Stop loss
Target
my-first-rule.abxCompiles. 0 errors.
1strategy "My First Rule"
2market: EURUSD
3bars: 15m
4
5when crosses_above(ema(close, 20), ema(close, 50)):
6buy risk: 1%, stop: 25 pips, target: 2R

What your rule says, in plain English

When the 20-bar EMA of the close crosses above the 50-bar EMA of the close, 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.

2R means a target twice as far as your stop. These words come from the real AlgoBarsX compiler. Every mix of buttons on this page was checked by it.

Like it? Write your own rule next.

Create my free account

Three steps. That is all.

  1. Write a rule

    Type it yourself. Or write what you want in plain English and press Convert. It writes the code for you.

  2. Read it back

    AlgoBarsX turns your code into plain English. If the words are wrong, the code is wrong. You fix it before it runs.

  3. Test it. Then run it.

    See how your rule did on past prices. Watch the test play back, trade by trade. When you are ready, run the same script on a demo or live account.

It catches mistakes before they run.

Forgot a unit? Spelled a name wrong? AlgoBarsX tells you what is wrong and how to fix it. Many fixes take one click.

Try it. Press the button in the box.

ema-cross.abx1 warning
1strategy "EMA Cross"
2market: EURUSD
3bars: 15m
4
5when crosses_above(ema(close, 20), ema(close, 50)):
6buy risk: 1%, stop: 25, target: 2R
warningAS0302line 6

stop 25 has no unit. Did you mean 25 pips?

Made to be easy.

You do not have to be a coder. These help you at every step.

Say it. It writes it.

Type your idea in plain English. Press Convert to AlgoBarsX. You get real code you can read and change.

Watch your test play back

See each trade open and close. Watch the balance move. It shows you what really happened, bar by bar.

One script. Any market.

Wrote it for the euro? Run it on gold. You pick the market, the bar size and the trade size when you start it.

One language. Many tools.

Use the same simple code to make all of these.

Strategies

Rules that buy, sell and manage your trades.

Indicators

Your own lines and marks, drawn on the chart.

Alerts

A message when something happens. You choose how often.

Dashboards

Tables and panels, right on your chart.

Risk tools

Check how much you could lose before you trade.

Shared code

Write a piece of code once. Use it again, or share it with your team.

built-in functions
137
example scripts to copy
61
written rules for how orders fill
24
tests the language must pass
678

Have old scripts? Bring them.

Paste your code. AlgoBarsX rewrites it and gives you a note on every line. Always read the result before you use it.

  • Pine Script
  • MQL4 and MQL5
  • NinjaScript
  • EasyLanguage
  • thinkScript
  • Python
You paste this
1//@version=5
2strategy("RSI Dip", overlay=true)
3len = input.int(14, "RSI Length")
4r = ta.rsi(close, len)
5if ta.crossover(r, 30)
6strategy.entry("L", strategy.long)
7if ta.crossunder(r, 70)
8strategy.close("L")
9plot(ta.ema(close, 200), color=color.orange)
You get this
1strategy "RSI Dip"
2market: EURUSD
3bars: 1h
4
5input len = 14
6
7r = rsi(close, len)
8
9when crosses_above(r, 30):
10buy size: 1 lot, tag: "L"
11
12when crosses_below(r, 70):
13close_all tag: "L"
14
15plot ema(close, 200), color: orange

Other product names belong to their owners. We name them only to show what you can import. AlgoBars is not part of those companies.

Tests that do not cheat.

A test is only useful if it is honest. These are rules the engine follows every time.

No peeking ahead

A rule can never see a future price. Not even by mistake.

Same answer every time

Same script. Same data. Same result.

When unsure, the stop wins

Sometimes one bar hits both your stop and your target. If the data cannot show which came first, the test counts the stop.

When the money is gone, the test stops

If your test account runs out of money, the test ends right there. It will not keep going with money you no longer have.

What a test leaves out

Tests do not include spread, fees, swaps or slippage. Real trading has all of them. So your real results will be different. A good test does not mean you will make money.

It is free.

$0a month

Every feature is open. You get 250 AI credits each month. Credits pay for AI, tests and auto trades. Buy more only if you want to.

Create my free account
  • No card needed
  • Not a trial
  • Nothing to cancel

Good questions.

Do I need to know how to code?

No. The code reads like plain words. It also reads itself back to you in English. And the AI can write it for you.

Is it really free?

Yes. It is $0 a month with no card. It is not a trial. You only pay if you want more credits.

Will my real results match the test?

No. Tests use old prices and leave out costs like spread and fees. Past results do not tell you what will happen next.

Does AlgoBars hold my money?

No. AlgoBars is software, not a broker. It links to your own broker account. It never holds your money. It does not give advice.

What is AlgoBars?

AlgoBars is the trading platform that AlgoBarsX runs on. One free account gives you both.

What does beta mean?

It works, and we are still making it better. Some things may change.

Write your first rule today.

Start with one rule. Read it back. Test it. It is free.

Create my free account

$0 a month · No card needed · Not a trial

Trading is risky. You can lose money. It is not right for everyone.