Leviathon
- Experts
-
Himanshu
Developing math-based Expert Advisors and Indicators for MT5, with knowledge and experience from field of AI and maths domain. Bringing high-level engineering standards to algorithmic trading.
Ex-CTO @ AuraX, Founding Engineer @ SynthAILabs, AI researcher @ Tublian - Versione: 2.4
- Attivazioni: 10
Leviathan is a multi-symbol, multi-strategy portfolio Expert Advisor. It runs several independent strategy instances at once across gold, major FX pairs, and stock indices, from a single chart, governed by one global risk setting and a full set of prop-firm drawdown and news controls. It does not use grid or martingale.
What it trades
Leviathan manages a fixed portfolio of session- and time-based instances on these instruments: XAUUSD, GBPUSD, USDJPY, EURJPY, and the indices US30, USTEC, and DE40. Each instance has its own isolated magic number and its own session window in GMT. The EA detects your broker's symbol naming automatically and resolves common aliases and suffixes. Indices and gold must be offered by your broker under a resolvable name for those instances to run.
The three strategies, in plain language
Range breakout (gold and FX). During a defined opening-range window the EA records the high and low, then places stop orders at both edges so a breakout either side is filled at the level. These instances carry a real per-trade stop loss and an optional trailing stop, and they flatten at a scheduled session close.
Scheduled index position. At a set time the EA opens a single index position and closes it at a later scheduled time. This is a time-based hold, not a breakout. It is long-only.
Seasonal index position. On a specific weekday, and only when price is below a moving-average filter (a buy-the-dip condition), the EA opens a single index position and holds it until a later weekday close. This is long-only.
One risk lever
A single risk-profile dropdown rescales the position sizing of every instance at once. Higher profiles size larger and accept larger drawdown; lower profiles size smaller. You set one value; the EA applies it across the whole portfolio. Sizing modes include fixed lots, percent of balance, percent of equity, fixed money risk, and a progressive ratchet that scales with account growth.
Prop-firm risk controls
Leviathan ships with controls aimed at funded-account and prop-firm rules. These are configurable and several are off by default — you must enable the ones your account requires:
Daily drawdown caps in three independent forms: percent of day-start balance, percent of trailing equity, and a fixed money amount.
Overall drawdown caps: percent of all-time peak equity and a fixed money amount. Overall breaches are permanent until you restart the EA; daily breaches reset the next day.
A high-impact news filter with configurable minutes before and after an event, which cancels pending orders inside the window and can optionally close open positions. Currencies are derived automatically from the instruments you enable, and the EA refuses to start if any enabled instrument cannot be mapped.
Per-trade and combined loss limits, and a profit-target auto-close that flattens the book and goes idle when a target equity is reached.
The EA detects netting versus hedging accounts and includes a one-cancels-other guard: when one side of a breakout fills, the other side is stood down, and a rare hedging-account double-fill is flattened immediately.
Results
The figures below come from a single backtest of the published build, attached to one chart while it traded its full portfolio (gold, FX and indices) from January 2015 to May 2026 — about eleven years — on 100% real ticks (the MetaQuotes-Demo tick history; History Quality: 100% real ticks, 553 million ticks across the seven symbols). The raw MT5 report is published so you can open it yourself and reconcile every number here.
Starting deposit 50,000, leverage 1:1000, growth-scaling position sizing. Net Profit 685,641.38, a 1,371% total return on the starting deposit over the eleven-year run, roughly 27% a year compounded. Profit Factor 1.17. Sharpe ratio 1.24. Recovery factor 15.94. Maximum balance drawdown 6.49% (34,818.62). Maximum equity drawdown 13.82% (43,017.03). Relative equity drawdown 32.21%. Total trades 20,221, of which 49.73% closed in profit. Average winning trade 475.37 against an average losing trade of 402.74; largest losing trade 5,386.04.
The edge is thin but positive: a profit factor above 1 and a near-even profit-trade rate. Leviathan makes money from a near-even win rate carried by a favorable average-win-to-loss ratio, not from a high hit rate. The total and per-year return figures are an in-sample compounding result over one historical run and should not be read as an expected future outcome — the 32.21% relative equity drawdown is the number to size against, not the headline return.
Requirements
Hedging or netting account (both supported). A broker that offers the gold, FX, and index instruments above under resolvable names. Sufficient leverage for index margin (the published test used 1:1000). A VPS or always-on terminal is recommended because the strategies act on scheduled session times in GMT. The EA auto-syncs to broker GMT offset and self-corrects across daylight-saving changes.
About the author
QubitQuant — two engineers building hedge-fund-grade tools at retail price. We test on our own money before we ask for yours. Every metric we publish reconciles to a raw MT5 report you can open. Support is provided through the product comments section and MQL5 messaging.
QubitQuant · Leviathan multi-strategy portfolio EA · every figure reconciles to the raw MT5 report.