Frequently asked questions
How do I convert MQL5 to Pine Script?
Paste your MQL5 indicator or expert advisor into the source pane, set the direction to MQL5 → Pine Script, and click Convert. Stratlate produces Pine Script v6 that you can paste straight into TradingView's Pine Editor, together with a list of warnings for anything that needed a manual decision. It's a structural transpiler: it maps the shared subset of both languages and clearly flags what it can't map, rather than guessing.
Can I move an MT5 indicator to TradingView?
Yes — that's the core use case. Common MT5 building blocks like iMA, iRSI, iATR, price series and buffer plots translate directly to Pine Script's ta.* functions and plot(). Platform-specific pieces (terminal functions, broker/order infrastructure, tick events) can't exist on TradingView, so they're reported as warnings with line numbers instead of being silently dropped.
Does Pine Script to MQL5 conversion work too?
Yes. Stratlate works in both directions: Pine Script v6 → MQL5 (or MQL4). ta.sma becomes iMA, strategy.entry maps onto order-sending logic, and series indexing like close[1] becomes MQL price-array access. Pine features with no MQL equivalent — for example request.security calls or drawing-object idioms — are flagged so you can decide how to handle them.
Is the conversion perfect? Will my strategy behave identically?
No transpiler can honestly promise that, and Stratlate doesn't. MetaTrader evaluates code on every tick; TradingView evaluates on bar close by default. Order execution, spread handling and account state differ between platforms. Stratlate gives you a structural translation of the logic, an explicit list of everything that needs your judgment, and — where it can be measured — a comparison of the two scripts' actual output. Expect to review, compile and backtest the result before trading it.
What does the pre-flight check tell me?
Alongside every conversion, Stratlate runs a feasibility pre-flight that inspects your source for platform features the target language simply cannot express — DLL calls, file I/O, hedged position management and the like. The verdict tells you up front whether to expect a close translation, an approximation, or a structural skeleton that needs real work — before you read a line of the converted code. Even a BLOCKED verdict still shows you what the engine produced; the strip just tells you honestly how far to trust it.
What does “Verified” mean on a conversion?
It means the conversion was measured, not just graded. Stratlate runs your original script and the converted one over the same 500 bars of price data, bar by bar, and compares the numbers they produce — every plotted series, and for a strategy the position, the equity and the trade list. “Verified: output matches the original” means they agreed on every bar where both had a value. That is a far stronger statement than the clean-translation score next to it, which only says how much of your source the engine knew how to map: a moving average seeded differently, an array indexed the wrong way round or a period that arrived as 15 instead of 14 all map cleanly and still produce the wrong chart. Running both is the only way to catch them.
My conversion says “Not verified” — did it fail?
No. Your converted code is there and is no different from any other conversion. “Not verified” means the checker met something it will not model — a higher-timeframe request.security call, an unimplemented builtin, a strategy setting outside its fill model — and it refuses to guess rather than report an approximate fidelity number. A wrong number would be worse than no number, because you would read it as evidence. Treat it exactly as you would treat any conversion before this feature existed: review it, compile it, and backtest it.
What is the TradingView compatibility check?
After converting to Pine Script, Stratlate automatically lints the output against a catalog of known TradingView compile errors — each rule is traced to a real compiler or runtime error code (CE/RE) observed in the Pine Editor. FATAL findings would stop the script from compiling, WARN findings usually need attention, and HAZARD findings are patterns that tend to misbehave at runtime. A clean result means none of the known defects were detected — it does not guarantee the script is valid; TradingView's compiler is the final authority.
Is Stratlate free? What happens to my code?
Converting your own script requires an account, and the free plan includes 3 conversions in total; further conversions are bought in packs, and those credits do not expire. Validation, linting and feasibility checks are free, unlimited and need no account. The worked example on this page also converts for anyone, signed in or not, so you can see exactly what the engine produces before deciding to sign up. Every conversion is saved: the source you submitted, the output it produced and the warnings raised. That record is your conversion history, and it is what your allowance is counted from. It is deleted after 12 months and is never sold, published or shared. We also use stored conversions internally to test and improve the converter — a conversion that comes out wrong is the most useful thing we can look at. They are never sold, published or redistributed. The full detail is in the Privacy Notice.
Why do I have to accept the Terms of Use before converting?
Because converted code is something you may trade real money with, and no converter can guarantee it behaves exactly like the original. The Terms of Use say plainly that output is provided as is, that inconsistencies between the original and the converted script are to be expected, and that reviewing, compiling and backtesting the result is your responsibility. The box is never ticked for you: accepting is a positive act, so you confirm it each visit, and the version you accepted is sent with every conversion.