
Quantum Titan MT5 3.3: automatic lots on XAUUSD, Jan–Oct 2026
Historical backtest: +93,697.83%. Explore Titan’s two-core approach and automatic lot sizing on gold.

Historical backtest: +93,697.83%. Explore Titan’s two-core approach and automatic lot sizing on gold.
With the source in your hands, your ideas can go further than the settings panel.
Open your source in MetaEditor and start building. Projects use self-contained code or the standard libraries already included with MT5.
Study, customise and trade on your own accounts. Your EA source gives you the freedom to keep refining your ideas.
One purchase per source project. MQLume does not charge by the number of activations or uses.
Bring your ideas to an AI coding assistant. Use the editable MQL5 project as your starting point, and stay in control of every change.
Ask for a session filter, clearer logging or a different risk rule.
Read the proposed code, check the logic and compile it in MetaEditor.
Compare backtests, then test on a demo account before considering live use.
Use an AI tool of your choice; no AI subscription is included. Review generated code and keep your source private. Better tools support your process, but do not guarantee trading profits.
Overview
Quantum Titan is designed specifically for XAUUSD. It monitors the market throughout the trading week and enters only when its predefined conditions agree. It does not aim to remain constantly invested: several trades on one day and no trades on another are both consistent with its selective approach.
Positions are handled individually rather than being accumulated into an expanding grid. The recommended default configuration does not use martingale. Each trade starts with a defined protective stop; optional recovery settings are a separate choice and should not be confused with the default approach.
Titan favors shorter market exposure and independent trading decisions. Its execution depends on actual spreads, slippage and fills; it does not remain invested simply to generate activity.
Attach the EA to an XAUUSD chart and select the desired sizing method. Available options include multiple money-management methods and eight automatic risk levels. Default settings provide a starting configuration; the drawdown protection is an additional control rather than a promise that losses cannot exceed a precise amount.
Differences in quotes, spreads, slippage and liquidity affect execution. Test the chosen configuration on a demo account, and allow for periods with little or no activity.
Explore the parametersTrading setup
XAUUSD-focused automated trading with individual stop-loss and trailing management.
Choose position sizing and account settings to suit your trading configuration.
Explore 50 lines of the project's MQL5 source. Scroll inside the editor to discover more.
double MQLumeNormalizeLotsContract(const double lots,const double volume_min, const double volume_max,const double volume_step) { double value=MQLumeMoneyMinSource(volume_max,MQLumeMoneyMaxSource(volume_min,lots)); if(volume_step>0.0) value=MathFloor((value+1e-9*volume_step)/volume_step)*volume_step; value=MQLumeMoneyMinSource(volume_max,MQLumeMoneyMaxSource(volume_min,value)); return(NormalizeDouble(value,MQLumeMoneyVolumeDigits(volume_step))); }double MQLumeNormalizeLots(const double lots) { const double volume_min=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN); const double volume_max=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX); const double volume_step=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP); return(MQLumeNormalizeLotsContract(lots,volume_min,volume_max,volume_step)); }double MQLumeMoneyRiskPreset(const int level) { switch(level) { case 0: return(1200.0); case 1: return(800.0); case 2: return(600.0); case 3: return(500.0); case 4: return(300.0); case 5: return(200.0); case 6: return(150.0); case 7: return(100.0); } return(1000.0); }// Calculate lots for the selected sizing mode; fall back to fixed lots when risk sizing is unavailable.double MQLumeMoneyLotsByMode(const int mode,const double risk_percent, const double fixed_lots,const double lots_per_step, const double balance_step,const double stop_distance, const double automatic_preset) { double raw_lots=fixed_lots; if(mode==MQLUME_RISK_PERCENT)Your next build starts here.
Complete source, practical documentation and reference files to help you understand, customise and test your EA.
100% source code means the editable implementation of this product is supplied in full. It is not an EX5-only delivery or a hidden strategy module.
Version 3.4 · Personal-use licenceAll 39 inputs explained: defaults, sizing formulas, units and practical notes. No SET preset is included.
The compiled EA accompanying the source. Recompile after editing the MQ5.
Complete, editable single-file source. Read the logic, customise it and compile your own EA.
A concise welcome, installation and compilation guide, with licence terms and support details.
Explore, customise and test your EA across different market conditions. Start with the supplied guide, then build a testing routine around your own settings.
Version v3.4 · 40
Initial settings from the delivered source. Review and test changes before using them.
An optional personal suffix follows @MQLume and required strategy identifiers. Leave blank to keep the standard comment.
Read PARAMETERS.pdf alongside README.txt for the meaning, defaults and operating notes behind the short input labels.
Automatic levels 0–7 use balance denominators 1200 / 800 / 600 / 500 / 300 / 200 / 150 / 100. Lower denominators request larger lots. Values use account currency; $ labels do not convert currencies. Broker minimum lots can exceed a small requested risk. See PARAMETERS.pdf for every input.
Core A trades previous-day breakouts. LongOnly blocks new sells; the bearish filter requires the previous daily candle to close below its open. Set 0/1 selects a 5/10 price-unit stop distance, not a fixed cash loss. Use a distinct positive Magic ID.
| Source input key | Initial value |
|---|---|
Enable Core AEnableCoreA | true |
Trade CommentTradeComment | @MQLume |
Magic NumberMagicNumber | 99999 |
Long OnlyLongOnly | false |
Bearish FilterUseShortsBearishFilter | false |
Strategy ModeSet | MQLUME_STOP_5 |
Modes: 0 = balance-percentage risk estimate, 1 = FixedLot, 2 = balance / BalanceStep × LotsPer1000, 3 = symbol minimum lot × balance / level denominator. Percent sizing falls back to FixedLot when unavailable. Volumes respect broker limits and lot steps; estimates do not cap actual losses.
| Source input key | Initial value |
|---|---|
Lot CalculationCoreARiskMode | MQLUME_RISK_AUTO |
Automatic LevelCoreARiskLevel | MQLUME_MEDIUM_HIGH |
RiskPercentCoreARiskPercent | 1.0 |
FixedLotCoreAFixedLot | 0.01 |
LotsPer1000CoreALotsPer1000 | 0.01 |
BalanceStepCoreABalanceStep | 1000.0 |
Version 3.4 defaults to Anticipated (1). Recovery applies only to Core A after an eligible loss; it uses the configured multiplier, not repeated exponential doubling. Entry Style 0 = Classic; 1 = Anticipated, shifting entry 1 price unit earlier and trailing distance from 0.5 to 0.8. Overshoot ≤ 0 is off; an excessive adverse fill can trigger a close.
| Source input key | Initial value |
|---|---|
UseRecoveryMode | false |
RecoveryMultiplier | 2.0 |
Entry StyleCoreAEntryMode | MQLUME_ENTRY_ANTICIPATED |
Maximum Adverse Entry Overshoot ($)MaximumAdverseEntryOvershoot | 0.0 |
Core B uses local-extreme breakouts, with independent buy/sell switches. Its Magic range is the base through base + 99: reserve all 100 IDs without overlap. Disabling a core is not an immediate close command.
| Source input key | Initial value |
|---|---|
Enable Core BEnableCoreB | true |
Trade CommentCoreBTradeComment | @MQLume |
Magic NumberCoreBMagicNumber | 22222 |
Allow BuyCoreBAllowBuy | true |
Allow SellCoreBAllowSell | true |
The same four sizing formulas apply independently to Core B. Percent sizing uses a 15 price-unit stop distance. Automatic Level defaults to 2 (denominator 600). Only fields for the selected mode control sizing.
| Source input key | Initial value |
|---|---|
Lot CalculationCoreBRiskMode | MQLUME_RISK_AUTO |
Automatic LevelCoreBRiskLevel | MQLUME_LOW_MEDIUM |
RiskPercentCoreBRiskPercent | 1.0 |
FixedLotCoreBFixedLot | 0.01 |
LotsPer1000CoreBLotsPer1000 | 0.01 |
BalanceStepCoreBBalanceStep | 1000.0 |
Choose weekdays for new entries using server time. New in 3.4: AvoidUSBANKHolidays defaults to true and filters 23 fixed US bank-holiday dates in 2026–2027, while existing positions remain managed. The built-in lists end on 2026-12-04 (NFP), 2027-12-08 (FOMC) and 2027-12-25 (bank holidays); they do not update automatically. NEWS displays OFF when both NFP and FOMC are off, even if the holiday filter is enabled.
| Source input key | Initial value |
|---|---|
TradeMonday | true |
TradeTuesday | true |
TradeWednesday | true |
TradeThursday | true |
TradeFriday | true |
AvoidNFPDays | true |
AvoidFOMCDays | true |
AvoidUSBANKHolidaysAvoidUSBankHolidays | true |
MaxDrawdownPercent defaults to 0 (off). It measures owned-position floating profit plus swap against balance, not account-wide peak drawdown. The pause lasts until the next server date. Friday protection starts one hour before the final broker session ends. ShowSimplePanel affects display and timer scheduling.
| Source input key | Initial value |
|---|---|
MaxDrawdownPercent (%)MaxDrawdownPercent | 0.0 |
Pause New Trades Until Next Day After DDPauseAfterDrawdownUntilNextDay | true |
AvoidWeekendExposure | true |
Show PanelShowSimplePanel | true |
An optional personal suffix follows @MQLume and required strategy identifiers. Leave blank to keep the standard comment.
| Source input key | Initial value |
|---|---|
Custom text (up to 20 characters)UserComment |
Support after delivery
While the product is actively maintained, we investigate and fix reproducible defects in the delivered, unmodified code that conflict with the product description.
Missing files, incorrect delivery and original-code compilation failures in the stated environment.
Provide the release, settings, logs and reproduction steps so we can assess and resolve the issue.
Start with the included guide and contact us for help with delivery or reproducible software defects. Trading results are not guaranteed.
You may read, modify and compile the delivered source for your own research and trading accounts. Keep a backup of the original delivery before making changes. You may not resell, redistribute, publish or sublicense the source or compiled files, or offer them as a white-label product, without separate written permission. Source delivery does not transfer copyright or ownership of third-party names.
Source code is a copyable digital product. Once delivered, we do not accept change-of-mind refunds, including because you no longer need the product. Check compatibility, contents and disclosed limits before ordering.
After payment is verified, we deliver the source package and documentation to your order email. Check your inbox and spam folder. Keep your order reference for delivery and support questions. Include your order reference, source release, terminal build, settings, expected behaviour and steps to reproduce. Attach only relevant logs and remove account credentials.
Read the files, environment and terms
Check the source version and purchase terms
Payment is checked with the provider or on the selected blockchain
Fast, automatic delivery after payment confirmation. No waiting for manual dispatch.
Ask us about advanced custom development. Share your requirements through private support or email; we will discuss the scope and quote separately.
100% committed to following up on your delivery and support requests.
Explore free EA source code




Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.

Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.

Trend-based entries with optional grid additions, side controls and virtual exits.

RSI entries with two ATR filters, configurable sessions and optional grid management.
Learn the difference: MQL4 / MQL5 source uses .mq4 / .mq5; EX4 / EX5 files are compiled programs. Buying an EX4 or EX5 file does not automatically include source code.
Two original, non-trading learning samples for MT4 and MT5. Inspect OnInit and OnDeinit logging without order execution.
Learning samples only. Review and compile them in MetaEditor before use; these samples do not place trades.
Ready for another approach? Choose an EA to run, or source code to explore and customise.

Source code · MQ5 + EX5
Two selectable gold profiles with adjustable sizing, stop management and an informative chart panel.

Source code · MQ5 + EX5
8 currencies · 28 pairs · Strength dashboard

EA only · EX5
Explore gold trading with embedded pattern models, entry-quality filters and adaptive stops, with four position-sizing modes to shape your setup.

Loading…
Stay close to MQLume, wherever you like to learn.
See our EAs in action. Explore backtests, walkthroughs and practical guides.
Watch on YouTubeMeet other EA users, share ideas and keep up with what’s new.
Join the community Follow official updates