Skip to main content
Hull Moving Average pasted as Pine Script

Indicator 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.

01 Paste

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.

1,500+ built-in names known across the six.ta.sma in Pine, Average in EasyLanguage and MA in AFL compute the same average.
02 Read the notes

Line 9
stays behind.

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.

Not every gap gets a note yet. Pine alerts (alertcondition) are dropped without one, so check those by eye.

03 Run it

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 converted from Pine Script on a BTCUSDT 1H chart

Hull Moving Average. Pine Script, on price.

Stochastic RSI converted from Pine Script in its own pane under BTCUSDT 1H

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.

LanguageConvertsStays behind
Pine Scriptv5 and v6Inputs, plots, ta.* and math, arrays, var state, lines, labels, boxes, tables and polylinesAlerts
MQL4 and MQL5Indicator buffers, iMA, iRSI and the other i-functions, iCustom for 41 known names, chart objects: lines, rectangles, Fibonacci, text and arrowsFiles, DLL imports, timers, trade calls
EasyLanguageInputs, Plot1 to PlotN, Average, RSI and the standard functions, trendlines, text and arrowsData2 and other data streams
AFLParam, Plot, MA, RSI, Ref into past bars, PlotText and Gfx drawingsRef into future bars, Gfx lines in pixel coordinates
MetaStockFormulas with Mov, RSI, Ref and the rest of the libraryFML 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.

Paste the code.
Keep the chart.

Six languages. 1,500+ built-in names.

Open the converterNext: Paper trading