Convert · EasyLanguage

Bring your EasyLanguage scripts. Keep your work.

You have spent years on your EasyLanguage scripts. You should not have to start again. Paste one in, and AlgoBarsX rewrites it and tells you what it did to every line.

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

A real example.

This is a real run of the importer. The result compiles. It read 6 lines: 3 carried over exactly, 3 were adapted, and 1 came back as choices for you.

You paste this · EasyLanguage
1Inputs: FastLen(20), SlowLen(50);
2Variables: FastAvg(0), SlowAvg(0);
3FastAvg = XAverage(Close, FastLen);
4SlowAvg = XAverage(Close, SlowLen);
5If FastAvg crosses over SlowAvg then Buy next bar at market;
6If FastAvg crosses under SlowAvg then Sell next bar at market;
You get this · AlgoBarsX
1strategy "Imported EasyLanguage strategy"
2market: EURUSD
3bars: 1h
4
5input FastLen = 20
6input SlowLen = 50
7
8state FastAvg = 0
9state SlowAvg = 0
10
11FastAvg = ema(close, FastLen)
12SlowAvg = ema(close, SlowLen)
13
14when crosses_above(FastAvg, SlowAvg):
15buy size: 1 lot
16
17when crosses_below(FastAvg, SlowAvg):
18close_all side: long
StatusYour lineWhat happened
ExactFastAvg = XAverage ( Close , FastLen ) ;a calculation carried over
ExactSlowAvg = XAverage ( Close , SlowLen ) ;a calculation carried over
ExactBuy next bar at market ;an order at market carried over
AdaptedIf FastAvg crosses over SlowAvg then Buy next bar at market a condition that places orders became a rule
AdaptedSell next bar at market ;sell closed the open position, which became close_all on that side
AdaptedIf FastAvg crosses under SlowAvg then Sell next bar at markea condition that places orders became a rule
Your callthe script headerEasyLanguage carries no market or bar size, so EURUSD on 1h was filled in: set the ones you want

How the ideas translate.

In EasyLanguageIn AlgoBarsX
Inputs: FastLen(20);input FastLen = 20
Variables: FastAvg(0);state FastAvg = 0
XAverage(Close, FastLen)ema(close, FastLen)
Average, WAveragesma, wma
If a crosses over b then …when crosses_above(a, b):
Buy next bar at market;buy. Market orders already fill at the next bar's open.
Sell next bar at market;close_all side: long
CurrentBarbar.index

EasyLanguage variables become state values. Where one is simply recalculated every bar, you can delete the state line and keep the assignment.

How to move a script.

  1. Paste or upload

    Open the Terminal, choose Import, and paste your code or pick the file.

  2. Read every note

    Each line is marked exact, adapted, or your call. Settle every “your call” before you go on.

  3. Read it back, then test

    Check the plain-English description against what your old script did. Then run a test.

What you gain.

It reads itself back

The compiler writes out what the script does in plain English.

Units are real

Percent, pips, R and money are types. Mix-ups are caught before anything runs.

One script everywhere

The same file draws, tests, alerts and trades.

Always read an import before you run it. No converter is perfect, and some shapes of code import better than others. Other platforms leave things unsaid that AlgoBarsX makes you state, such as the market, the bar size and the trade size. Compare the plain-English description with what your old script did, and test before you deploy.

Good questions.

Will every script convert cleanly?

No. Simple, common shapes convert best. An import that does not compile says so, and every changed line carries a note. Always read the result.

Do I lose my original?

No. Your old script is untouched. Lines that needed a choice keep the original as a comment.

Is it free?

AlgoBars is $0 a month with no card. Credits pay for AI, tests and auto trades.

Try it with one script.

Pick a small one. Paste it in. Read what comes back.

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.