It reads itself back
The compiler writes out what the script does in plain English.
Convert · EasyLanguage
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.
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.
Inputs: FastLen(20), SlowLen(50);Variables: FastAvg(0), SlowAvg(0);FastAvg = XAverage(Close, FastLen);SlowAvg = XAverage(Close, SlowLen);If FastAvg crosses over SlowAvg then Buy next bar at market;If FastAvg crosses under SlowAvg then Sell next bar at market;strategy "Imported EasyLanguage strategy"market: EURUSDbars: 1hinput FastLen = 20input SlowLen = 50state FastAvg = 0state SlowAvg = 0FastAvg = ema(close, FastLen)SlowAvg = ema(close, SlowLen)when crosses_above(FastAvg, SlowAvg):buy size: 1 lotwhen crosses_below(FastAvg, SlowAvg):close_all side: long| Status | Your line | What happened |
|---|---|---|
| Exact | FastAvg = XAverage ( Close , FastLen ) ; | a calculation carried over |
| Exact | SlowAvg = XAverage ( Close , SlowLen ) ; | a calculation carried over |
| Exact | Buy next bar at market ; | an order at market carried over |
| Adapted | If FastAvg crosses over SlowAvg then Buy next bar at market | a condition that places orders became a rule |
| Adapted | Sell next bar at market ; | sell closed the open position, which became close_all on that side |
| Adapted | If FastAvg crosses under SlowAvg then Sell next bar at marke | a condition that places orders became a rule |
| Your call | the script header | EasyLanguage carries no market or bar size, so EURUSD on 1h was filled in: set the ones you want |
| In EasyLanguage | In AlgoBarsX |
|---|---|
Inputs: FastLen(20); | input FastLen = 20 |
Variables: FastAvg(0); | state FastAvg = 0 |
XAverage(Close, FastLen) | ema(close, FastLen) |
Average, WAverage | sma, 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 |
CurrentBar | bar.index |
EasyLanguage variables become state values. Where one is simply recalculated every bar, you can delete the state line and keep the assignment.
Open the Terminal, choose Import, and paste your code or pick the file.
Each line is marked exact, adapted, or your call. Settle every “your call” before you go on.
Check the plain-English description against what your old script did. Then run a test.
The compiler writes out what the script does in plain English.
Percent, pips, R and money are types. Mix-ups are caught before anything runs.
The same file draws, tests, alerts and trades.
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.
No. Your old script is untouched. Lines that needed a choice keep the original as a comment.
AlgoBars is $0 a month with no card. Credits pay for AI, tests and auto trades.
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.