MQL & Pine Script Converter

Convert MQL4 to MQL5 and back, or MQL5 to TradingView Pine Script v6 and back. You get the converted source with a list of what was changed and what still needs your hands. The preview is free.

Your code is processed on request and not stored.
Enter your key to convert. No key yet? Try the free preview.

Source code

Converted result

Test it yourself

The output is generated code. Compile MQL in MetaEditor and run it in the Strategy Tester; add Pine scripts to a TradingView chart and compare them with the original before anything touches a live account.

MetaTrader and TradingView differ

Pine runs once per bar and nets positions; MetaTrader runs on every tick and can hedge. EAs become strategies and strategies become EAs, but order handling, sessions and time zones are approximated. The Review tab lists every such place.

Your own code

Use it on source code you wrote or are licensed to change. It converts source files only, not compiled .ex4 or .ex5 files or protected TradingView scripts.

Credits

A conversion that fails on our side is refunded automatically. Converting the same code again in the same session does not use another credit.