
Gold
A focused improvement
For a specific change to an existing project.
Quoted per project
Discuss this tier · GoldWith 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
Manage eleven independently configured markets from one M1 chart. Each market has its own range, broker symbol, lot method, risk setting and order identifier.
Use a hedging account. Load the history for each enabled market and enter the exact symbol from Market Watch, including any suffix. The supplied eleven-market preset uses XM aliases and manual GMT offsets.
Group exits can manage positions across symbols with matching magic numbers. Use unique identifiers. Daily equity limits include activity elsewhere on the account. Balanced sizing does not guarantee a drawdown cap.
Automatic GMT uses an optional web time service. Backtests use the embedded news dates through 2026. Ordinary charts can use the MT5 economic calendar. Missing news data allows entries to continue.
Version 1.2 addresses the startup lot-size warning. Check the exact broker symbol for every enabled market: a missing exchange rate or tick value can still prevent sizing. Existing SET files retain their broker-specific symbol mappings. Automatic GMT can require the documented WebRequest permission.
Explore the parametersTrading setup
Edit the MQ5 market settings and portfolio controls in MetaEditor. The source edition includes the matching EX5, two presets and the parameter manual.
Read the supplied parameter guide for units and interactions before changing these initial values.
Explore 50 lines of the project's MQL5 source. Scroll inside the editor to discover more.
input string URLGMT = "https://www.worldtimeserver.com/";input string LICURL = "Allow the GMT URL in Tools > Options > Expert Advisors";input string LICURLB = "WebRequest is only used for automatic GMT detection";input group "Info panel settings"input bool ShowInfoPanel = true;input bool UpdateInfoTesting = false;input double InfoPanelSizeAdjust = 1.0;input int SetFontSize = 0; // Legacy panel option; the table uses fixed font sizes.input group "Portfolio markets"input bool Use_BTCUSD = true;input string Sym_BTCUSD = "BTCUSD";input LotMethod Method_BTCUSD = LOT_BALANCED;input double Lots_BTCUSD = 0.01;input double Risk_BTCUSD = 0.27;input ulong Magic_BTCUSD = 501186;input bool Use_EURJPY = true;input string Sym_EURJPY = "EURJPY";input LotMethod Method_EURJPY = LOT_BALANCED;input double Lots_EURJPY = 0.01;input double Risk_EURJPY = 0.12;input ulong Magic_EURJPY = 501015;input bool Use_GBPUSD = true;input string Sym_GBPUSD = "GBPUSD";input LotMethod Method_GBPUSD = LOT_BALANCED;input double Lots_GBPUSD = 0.01;input double Risk_GBPUSD = 0.18;input ulong Magic_GBPUSD = 501034;input bool Use_DE40 = true;input string Sym_DE40 = "DE40";input LotMethod Method_DE40 = LOT_BALANCED;input double Lots_DE40 = 0.01;input double Risk_DE40 = 0.18;input ulong Magic_DE40 = 501008;input bool Use_EURUSD = true;input string Sym_EURUSD = "EURUSD";input LotMethod Method_EURUSD = LOT_BALANCED;input double Lots_EURUSD = 0.01;input double Risk_EURUSD = 0.16;input ulong Magic_EURUSD = 501028;input bool Use_ETHUSD = true;input string Sym_ETHUSD = "ETHUSD";input LotMethod Method_ETHUSD = LOT_BALANCED;input double Lots_ETHUSD = 0.01;input double Risk_ETHUSD = 0.62;input ulong Magic_ETHUSD = 814003;input bool Use_US500 = true;input string Sym_US500 = "US500";input LotMethod Method_US500 = LOT_BALANCED;input double Lots_US500 = 0.01;input double Risk_US500 = 0.09;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 1.2 · Personal-use licenceRead the supplied parameter guide for units and interactions before changing these initial values.
MT5 input preset. Review the settings before use.
MT5 input preset. Review the settings before use.
A concise welcome, installation and compilation guide, with licence terms and support details.
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.
Testing
Use a hedging account. Load the history for each enabled market and enter the exact symbol from Market Watch, including any suffix. The supplied eleven-market preset uses XM aliases and manual GMT offsets.
Version v1.2 · 115
Initial settings from the delivered source. Review and test changes before using them.
Read the supplied parameter guide for units and interactions before changing these initial values.
Read PARAMETERS.pdf alongside README.txt for the meaning, defaults and operating notes behind the short input labels.
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Time service URL for automatic broker offset detectionURLGMT | "https://www.worldtimeserver.com/" |
Where to allow the time service in MT5LICURL | "Allow the GMT URL in Tools > Options > Expert Advisors" |
What the web request is used forLICURLB | "WebRequest is only used for automatic GMT detection" |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Show the portfolio panelShowInfoPanel | true |
Refresh the panel in the testerUpdateInfoTesting | false |
Panel scale factorInfoPanelSizeAdjust | 1.0 |
Legacy font setting; table fonts are fixedSetFontSize | 0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Enable this marketUse_BTCUSD | true |
Exact broker symbol including suffixSym_BTCUSD | "BTCUSD" |
Position-sizing methodMethod_BTCUSD | LOT_BALANCED |
Fixed trade volume in lotsLots_BTCUSD | 0.01 |
Risk input for position sizingRisk_BTCUSD | 0.27 |
Identifier for orders managed by the EAMagic_BTCUSD | 501186 |
Enable this marketUse_EURJPY | true |
Exact broker symbol including suffixSym_EURJPY | "EURJPY" |
Position-sizing methodMethod_EURJPY | LOT_BALANCED |
Fixed trade volume in lotsLots_EURJPY | 0.01 |
Risk input for position sizingRisk_EURJPY | 0.12 |
Identifier for orders managed by the EAMagic_EURJPY | 501015 |
Enable this marketUse_GBPUSD | true |
Exact broker symbol including suffixSym_GBPUSD | "GBPUSD" |
Position-sizing methodMethod_GBPUSD | LOT_BALANCED |
Fixed trade volume in lotsLots_GBPUSD | 0.01 |
Risk input for position sizingRisk_GBPUSD | 0.18 |
Identifier for orders managed by the EAMagic_GBPUSD | 501034 |
Enable this marketUse_DE40 | true |
Exact broker symbol including suffixSym_DE40 | "DE40" |
Position-sizing methodMethod_DE40 | LOT_BALANCED |
Fixed trade volume in lotsLots_DE40 | 0.01 |
Risk input for position sizingRisk_DE40 | 0.18 |
Identifier for orders managed by the EAMagic_DE40 | 501008 |
Enable this marketUse_EURUSD | true |
Exact broker symbol including suffixSym_EURUSD | "EURUSD" |
Position-sizing methodMethod_EURUSD | LOT_BALANCED |
Fixed trade volume in lotsLots_EURUSD | 0.01 |
Risk input for position sizingRisk_EURUSD | 0.16 |
Identifier for orders managed by the EAMagic_EURUSD | 501028 |
Enable this marketUse_ETHUSD | true |
Exact broker symbol including suffixSym_ETHUSD | "ETHUSD" |
Position-sizing methodMethod_ETHUSD | LOT_BALANCED |
Fixed trade volume in lotsLots_ETHUSD | 0.01 |
Risk input for position sizingRisk_ETHUSD | 0.62 |
Identifier for orders managed by the EAMagic_ETHUSD | 814003 |
Enable this marketUse_US500 | true |
Exact broker symbol including suffixSym_US500 | "US500" |
Position-sizing methodMethod_US500 | LOT_BALANCED |
Fixed trade volume in lotsLots_US500 | 0.01 |
Risk input for position sizingRisk_US500 | 0.09 |
Identifier for orders managed by the EAMagic_US500 | 501189 |
Enable this marketUse_US30 | true |
Exact broker symbol including suffixSym_US30 | "US30" |
Position-sizing methodMethod_US30 | LOT_BALANCED |
Fixed trade volume in lotsLots_US30 | 0.01 |
Risk input for position sizingRisk_US30 | 0.16 |
Identifier for orders managed by the EAMagic_US30 | 501042 |
Enable this marketUse_USDJPY | true |
Exact broker symbol including suffixSym_USDJPY | "USDJPY" |
Position-sizing methodMethod_USDJPY | LOT_BALANCED |
Fixed trade volume in lotsLots_USDJPY | 0.01 |
Risk input for position sizingRisk_USDJPY | 0.36 |
Identifier for orders managed by the EAMagic_USDJPY | 501058 |
Enable this marketUse_USTEC | true |
Exact broker symbol including suffixSym_USTEC | "USTEC" |
Position-sizing methodMethod_USTEC | LOT_BALANCED |
Fixed trade volume in lotsLots_USTEC | 0.01 |
Risk input for position sizingRisk_USTEC | 0.09 |
Identifier for orders managed by the EAMagic_USTEC | 501205 |
Enable this marketUse_XAUUSD | true |
Exact broker symbol including suffixSym_XAUUSD | "XAUUSD" |
Position-sizing methodMethod_XAUUSD | LOT_BALANCED |
Fixed trade volume in lotsLots_XAUUSD | 0.01 |
Risk input for position sizingRisk_XAUUSD | 0.22 |
Identifier for orders managed by the EAMagic_XAUUSD | 510066 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Optional personal order comment suffixTrade_Comment | "" |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Portfolio profit target for group closureGroupClose_ProfitTarget | 0 |
Portfolio trailing profit thresholdGroupClose_TrailProfit | 0 |
Portfolio loss threshold for group closureGroupClose_LossLimit | 0 |
Unit used for group exit thresholdsGroupClose_Unit | GROUP_CURRENCY |
Cancel matching pending orders on group exitGroupClose_DeletePendings | false |
Stop new entries after group exitGroupClose_StopTrading | false |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Tester processing mode; faster modes can change timingBacktestSpeed | PROCESS_NORMAL |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Lower account equity thresholdCloseAtMinEquity | 0 |
Upper account equity thresholdCloseAtMaxEquity | 0 |
Account-wide daily drawdown limitPropFirmMaxDailyDD | 0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Drawdown input for balanced lot sizingMaxAllowedTotalDrawdown | 10.0 |
Override the balance used for sizingPortfolioManualBalance | 0 |
Maximum lots per orderMaxLots | 999 |
Use equity as the sizing baseUseEquity | false |
Use the highest recorded balance for sizingOnlyUp | true |
Reset the stored peak balanceResetHighestBalance | false |
Reset peak balance after a withdrawalResetHighestBalanceOnWithdrawal | true |
Check available margin before placing ordersCheckMargin | true |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Detect broker time offset automaticallyAutoGMT | true |
Summer offset from GMT in hoursBroker_GMT_OFFSET_Summer | 3 |
Winter offset from GMT in hoursBroker_GMT_OFFSET_Winter | 2 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Use the MT5 economic calendar on ordinary chartsUseMQL5Calendar | true |
Calendar look-ahead window in daysMQL5_CalendarDays | 70 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Visual separator for this eventbreakerm | "#########" |
Enable filtering around this eventEnableNFP_Filter | false |
Close open positions before the eventNFP_CloseOpenTrades | true |
Cancel pending orders before the eventNFP_ClosePendingOrders | true |
Minutes before the announcementNFP_MinutesBefore | 50 |
Minutes after the announcementNFP_MinutesAfter | 30 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Visual separator for this eventbreakern | "#########" |
Enable filtering around this eventEnableIR_Filter | false |
Close open positions before the eventIR_CloseOpenTrades | true |
Cancel pending orders before the eventIR_ClosePendingOrders | true |
Minutes before the announcementIR_MinutesBefore | 60 |
Minutes after the announcementIR_MinutesAfter | 120 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Visual separator for this eventbreakero | "#########" |
Enable filtering around this eventEnableCPI_Filter | false |
Close open positions before the eventCPI_CloseOpenTrades | true |
Cancel pending orders before the eventCPI_ClosePendingOrders | true |
Minutes before the announcementCPI_MinutesBefore | 60 |
Minutes after the announcementCPI_MinutesAfter | 120 |
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
Combine local Pending and Additional systems with Banks and Indicators online signal modules.

Source code · MQ5 + EX5
Session-range breakout entries combine direction filters, recovery cycles and configurable stop management.


Free EA · MQ5 + EX5
Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.
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