It reads itself back
The compiler writes out what the script does in plain English.
Convert · Pine Script
You have spent years on your Pine Script 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 8 lines: 5 carried over exactly, 2 were adapted, and 2 came back as choices for you.
//@version=5strategy("RSI Dip", overlay=true)len = input.int(14, "RSI Length")r = ta.rsi(close, len)if ta.crossover(r, 30)strategy.entry("L", strategy.long)if ta.crossunder(r, 70)strategy.close("L")plot(ta.ema(close, 200), color=color.orange)strategy "RSI Dip"market: EURUSDbars: 1hinput len = 14r = rsi(close, len)when crosses_above(r, 30):buy size: 1 lot, tag: "L"when crosses_below(r, 70):close_all tag: "L"plot ema(close, 200), color: orange| Status | Your line | What happened |
|---|---|---|
| Exact | strategy("RSI Dip", overlay=true) | strategy() became the script header |
| Exact | len = input.int(14, "RSI Length") | input() became an input |
| Exact | r = ta.rsi(close, len) | a calculation was carried over |
| Your call | strategy.entry("L", strategy.long) | strategy.entry() had no size of its own, so it became one lot: set the size or risk you want |
| Adapted | if ta.crossover(r, 30) | an if that places orders became a rule |
| Exact | strategy.close("L") | strategy.close() became close_all |
| Adapted | if ta.crossunder(r, 70) | an if that places orders became a rule |
| Exact | plot(ta.ema(close, 200), color=color.orange) | plot() became plot |
| Your call | strategy(...) | Pine scripts carry no market or bar size, so EURUSD on 1h was filled in: set the ones you want |
| In Pine Script | In AlgoBarsX |
|---|---|
strategy("RSI Dip", overlay=true) | strategy "RSI Dip" with market: and bars: stated. Pine takes both from the chart, so they come back as your decision. |
len = input.int(14, "RSI Length") | input len = 14 |
ta.rsi(close, len) | rsi(close, len) |
if cond, then strategy.entry(...) under it | when cond: with buy under it |
strategy.close("L") | close_all tag: "L" |
plot(x, color=color.orange) | plot x, color: orange |
var count = 0 | state count = 0 |
close[1] | close[1], exactly the same |
Pine does not say how big the position is, so the import uses one lot and hands the choice back to you. Replace it with risk: 1% and a stop.
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.