Pine Script v4, v5, v6 to Glot
Indicators, strategies and libraries, including request.security and the strategy.* order model. Pine v4 syntax is upgraded automatically.
TradeGlot is a trading platform built around Glot. Paste Pine Script v4–v6, MQL4 or MQL5 code, convert it, write and fix it with AI, backtest it honestly, and run it on verified brokers across forex, stocks and crypto, on web, desktop and mobile.
//@version=5
strategy("Pullback H4", overlay = true)
ema20 = ta.ema(close, 20)
h4ema = request.security(syminfo.tickerid, "240",
ta.ema(close, 50), lookahead = barmerge.lookahead_on)
if ta.crossover(close, ema20) and close > h4ema
strategy.entry("L", strategy.long)
strategy.exit("X", "L", loss = 300, profit = 600)
glot 0.2
strategy "Pullback H4" (overlay = true, fill = pine)
let ema20 = ta.ema(close, 20)
let h4 = data.series(symbol, H4, lookahead = off)
let h4ema = ta.ema(h4.close, 50)
if close crosses_over ema20 and close > h4ema {
trade.buy(size = equity_pct(10%),
sl = dist.points(300), tp = dist.points(600),
reason = "pullback_h4")
}
Bring Pine Script, MQL4 or MQL5 source code, or describe the strategy in plain language.
The converter writes readable Glot code and a report of every change. Results are compared bar by bar with the original platform.
Out-of-sample split, walk-forward, Monte Carlo and a repaint detector run by default.
Paper trade first, then go live with a licensed broker you choose. You confirm every live order.
Stop maintaining one version for TradingView and another for MetaTrader. Convert once to Glot and keep one source file for every platform and broker.
Indicators, strategies and libraries, including request.security and the strategy.* order model. Pine v4 syntax is upgraded automatically.
Expert advisors and indicators that use the standard library, CTrade, OrderSend and indicator handles become event-driven Glot experts.
Shows the share converted automatically, every compatibility shim used, and each line that needs review with a suggested fix.
Look-ahead bias, wrong-timeframe reads and fixed lot sizes are flagged and fixed in the converted code, never silently kept.
Glot is a trading language for indicators, strategies and expert advisors. It runs bar by bar like Pine Script and event by event like MQL, and it is designed to make common trading-code mistakes impossible.
The compiler knows prices, price distances, percentages and money. Adding a price to an RSI value is a compile error.
Order prices and P&L use fixed-point decimals rounded to each instrument's tick size, so results reconcile with the broker to the cent.
Higher-timeframe data only returns closed bars inside strategies and expert advisors.
A deterministic engine gives bit-identical results on servers, desktops, phones and browsers.
Size by risk percentage and set stops by distance, so one strategy runs correctly on any broker.
Write tests next to the strategy, and run ONNX models with deterministic inference.
Glot Studio brings the editor, an AI coding assistant, a chart debugger and the backtest report into one window on desktop and web. The studio shell will be open source so developers can extend it.
Ask in plain language or paste code. The AI proposes a diff; the compiler and your tests check it before you accept. Works with your own model through MCP and ACP.
Step bar by bar and hover any variable at any bar.
Build panels, chart tools and report sections with an open extension API.
A language server for VS Code and other editors, plus a command-line tool.
Most strategies look good on the data they were tuned on. TradeGlot keeps an out-of-sample period by default and shows it next to every result.
70% in-sample, 30% out-of-sample by calendar time. Optimization only sees the in-sample part.
Check that results hold across windows and trade orderings.
Compares real-time and historical signals and points to the bar and variable that differ.
Replay a paper or live session exactly and see why the strategy entered each trade.
| Capability | TradeGlot | TradingView | MetaTrader 5 |
|---|---|---|---|
| Language | Glot | Pine Script | MQL5 |
| Imports Pine Script code | Yes, converted | Native | No |
| Imports MQL4 / MQL5 code | Yes, converted | No | MQL5 native |
| Out-of-sample shown by default | Yes | No | Optional (forward testing) |
| Units and money checked by the compiler | Yes | No | No |
| Open-source chart library | Glot Charts | Lightweight Charts | No |
Prices are planned and may change before launch.
$0
$12 / month
$39 / month
100% revenue share
TradeGlot never holds customer money. Orders go to licensed brokers shown by name and license number.
AI drafts and tests code. Every real-money order needs your confirmation.
Daily loss, drawdown, spread and news limits are enforced before an order reaches the broker.
Real money and paper trading are always labeled, on every screen.
TradeGlot is a multi-asset trading platform built around Glot, one trading language. It converts Pine Script and MQL code to Glot, lets you write and fix code with AI, backtest it honestly, paper trade, and run it live through verified brokers on web, desktop and mobile.
TradeGlot converts Pine Script v4, v5 and v6 into Glot, and Glot strategies run on MetaTrader 5 brokers through the TradeGlot MT5 agent. You keep one source file instead of maintaining separate Pine and MQL5 versions.
Yes. MQL4 and MQL5 indicators and expert advisors that use the standard library are converted to Glot. Each conversion produces a report that lists what converted automatically and what needs review. DLL imports and compiled .ex4/.ex5 files without source cannot be converted.
Glot is a trading language for indicators, strategies and expert advisors. It supports bar-by-bar logic like Pine Script and event-driven logic like MQL, blocks look-ahead bias, tracks price, distance and money units in the type system, and produces identical results on every device.
No. TradeGlot is a technology provider. It does not hold customer funds. Live orders are executed by licensed brokers, and every order ticket shows the broker name and license number.
No. The AI assistant can write, explain and test code, and run backtests, but it never places real-money orders. Every live order requires your confirmation in the app.
Every backtest keeps an out-of-sample period by default, supports walk-forward and Monte Carlo analysis, and runs a repaint detector that compares real-time and historical signals. Marketplace listings must show out-of-sample results.
TradeGlot is in development. Development tools are planned to be free, with paid plans for cloud execution, data and AI usage. Join the waitlist to get launch news and early access.
Get launch news, early access to Glot Studio and the founding developer program. One email per month at most.
We use your email only for TradeGlot launch updates. Unsubscribe at any time.