Pine Script, MQL5 and Python export

Your tested strategy, as code for TradingView, MetaTrader 5 or Python.

Backtrex exports your strategy to Pine Script v6, MQL5 or Python. Only the Python export is verified: replayed on the last year, it must find exactly Backtrex's trades, or it is refused and your quota refunded.

The Code Translation Wall

Your strategy runs in Backtrex. To follow it on TradingView, MetaTrader or in your own scripts, you need code. Translating by hand takes days, introduces bugs, and nothing tells you the code does what the backtest did.

Code written by AI, verified where possible

AI writes the code from your blocks. Python runs inside Backtrex: it is replayed trade by trade and refused if it differs. Pine Script and MQL5 run on another platform, so they are marked "to validate in your platform".

How Export Works

//@version=6
strategy("My Strategy")
if ta.crossover(close, sma)
strategy.entry("Buy", strategy.long)

Three languages

Pine Script v6 for TradingView, MQL5 for MetaTrader 5, Python for your own tools. Readable code you can review and edit.

Same tradesBacktrexPython

Python, verified trade by trade

The Python script is replayed on the last year. It must find exactly Backtrex's trades. Otherwise the export is refused and the quota refunded.

Import
Test
Export

Import, test, export

Import your strategy, backtest it, export it. Not a line of code to write on your side.

TradingViewTo validate
MetaTrader 5To validate
PythonVerified

Pine and MQL5: validate on your side

These two exports run outside Backtrex, so they aren't verified trade by trade. Test them in TradingView or MetaTrader before relying on them.

Ready to backtest your strategies?

Import your strategy as text, Pine Script or MQL5 and run your first test for free, no credit card. From import to a 10-year result, count about 2 minutes.

Create your account in 30 seconds and run your first backtest. No credit card.