

Hull Moving Average pasted as Pine ScriptIndicator script converterPaste the code.
See the line
on your chart.
Script Converter reads indicators written in Pine Script, MQL4, MQL5, EasyLanguage, AFL, and MetaStock and puts them on the TradersWeek chart. It detects the language, converts in your browser and lists by line what it could not carry over. Free with an account: 5 conversions a month, no limit on Pro.
Six languages.
One box.
Paste the code or upload the file: .pine, .mq4, .mq5, .elf, .afl, or .txt, up to 500 KB. The converter recognises the language from the code itself. If it guesses wrong, pick another one above the editor.
Pine Script
TradingView, versions 5 and 6.
plot(ta.rsi(close, length), "RSI")MQL4
MetaTrader 4 custom indicators.
buf[i] = iRSI(NULL, 0, 14, PRICE_CLOSE, i);MQL5
MetaTrader 5. An expert advisor comes in as an indicator, its trade calls ignored.
RsiBuffer[i] = iRSI(NULL, 0, RSI_Period, PRICE_CLOSE, i);EasyLanguage
TradeStation and MultiCharts.
Plot1(Average(Close, Length), "SMA");AFL
AmiBroker formulas.
Plot(MA(C, 20), "SMA 20");MetaStock
MetaStock formula language.
RSI(C, 14)
Line 9
stays behind.
9FileOpen() is not supported in web conversion and is ignored. The rest of the indicator still computes.When a call has no counterpart on a web chart, the result names it and the line it sits on. Click the note and the editor jumps there. The indicator still builds from everything else.
A syntax error stops the build instead, and the notes point at the first broken line.
- MQL4
#import "user32.dll"DLL imports are not supported in web conversion. Functions imported from it are unknown here.
- MQL5
OnTimer()Not supported in web conversion. Timer-based logic will be skipped.
- EasyLanguage
Close of Data2Multi-data references require external symbol data. Using current symbol as fallback.
- AFL
Ref(C, +1)Reads a future bar. Not supported, using current bar.
- MetaStock
UnknownFunc(42)Unknown MetaStock function. It returns no value, so every plot that uses it will be empty. Check the function name spelling.
Not every gap gets a note yet. Pine alerts (alertcondition) are dropped without one, so check those by eye.
On the chart,
not in a file.
Add to chart puts the result on the live chart as an ordinary indicator, on price or in its own pane, with the script's inputs as settings. The code is converted in your browser. Long histories are computed in a background worker, and a script that runs longer than 10 seconds is stopped.
Save keeps it in My indicators on any device you sign in from. Export writes it out as Pine Script, MQL4, MQL5, EasyLanguage, AFL, or MetaStock: a draft to check before you compile it, without the drawings.
- Converts
- In your browser
- Placement
- On price or in its own pane
- Conversions
- 5 a month on Free, no limit on Pro and Premium
- My indicators
- 10 on Free, 100 on Pro, no limit on Premium
- Needs
- A free account

Hull Moving Average. Pine Script, on price.

Stochastic RSI. Pine Script, in its own pane.
What carries over,
what stays behind.
The converter rebuilds the calculation, and the script's lines, labels and boxes are drawn on the chart in every language but MetaStock. Alerts, files and data from other symbols stay behind.
| Language | Converts | Stays behind |
|---|---|---|
| Pine Scriptv5 and v6 | Inputs, plots, ta.* and math, arrays, var state, lines, labels, boxes, tables and polylines | Alerts |
| MQL4 and MQL5 | Indicator buffers, iMA, iRSI and the other i-functions, iCustom for 41 known names, chart objects: lines, rectangles, Fibonacci, text and arrows | Files, DLL imports, timers, trade calls |
| EasyLanguage | Inputs, Plot1 to PlotN, Average, RSI and the standard functions, trendlines, text and arrows | Data2 and other data streams |
| AFL | Param, Plot, MA, RSI, Ref into past bars, PlotText and Gfx drawings | Ref into future bars, Gfx lines in pixel coordinates |
| MetaStock | Formulas with Mov, RSI, Ref and the rest of the library | FML and EXTFML calls, Security on another symbol |
Script Converter questions
- Is my code sent to a server?
- No. Conversion runs in your browser. On the free plan the server counts conversions, not code. The script is stored only when you press Save.
- Will it match TradingView or MetaTrader exactly?
- Not always. Formulas are rebuilt from public definitions, so values can differ, and so can styles: a Pine histogram draws as a filled area.
- Can I convert a strategy?
- The calculation converts and its entries and exits are found. Simulate them on the loaded candles, send the last signal to a paper account, or open a draft in Strategy Builder. The script itself places no orders.
- Do I need an account?
- Yes. A free account converts 5 scripts a month. Pro and Premium have no limit.
- Can I get Pine or MQL back out?
- Yes, from Export, as a draft. Check periods and variable names before you compile, MQL especially.
