
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
Includes editable English MQ5, ready-to-load EX5, README, a guide to all 45 inputs and Default.set. Explore signal selection, position sizing, breakeven, partial exits and trailing stops.
Built for MetaTrader 5. A complete source project, clear inputs and practical documentation give you control over your next build.
Trading setup
Gold M5 trading with seven signal modes, adjustable risk controls and an interactive chart dashboard.
Setup information follows the supplied guide. Confirm the exact symbol and account settings with your broker.
Explore 50 lines of the project's MQL5 source. Scroll inside the editor to discover more.
enum SignalDirection { SIGNAL_SELL=-1, SIGNAL_NONE=0, SIGNAL_BUY=1 };struct SignalSettings{ bool asian,asianSession,sweep,extendedSwing,fairValueGap,consensus; bool slowTrend,squeeze,volumeClimax,momentum,reversion,wickConfirmation; bool higherTrend,higherTrendH1,rolloverGuard,forceBreakeven; double asianPaddingPips,fairValueGapPoints,consensusPercent,squeezeAtr; double volumeMultiplier,volumeWick,momentumRsiLow,momentumRsiHigh; double reversionAtr,reversionRsiHigh,reversionRsiLow; bool timeframes[7];};struct TradingSettings{ MQLumeScalpMode mode; ENUM_TIMEFRAMES timeframe; bool armed,useSL,useTP,autoLots,atrSL,atrTP; double lots,slPips,tpPips,target,loss; MQLumeLimitMode targetMode,lossMode; bool profitCooldown; int profitCooldownSeconds;};struct IndicatorHandles{ int atr,bands,rsi,adx,macd,fastEma,slowEma,higherEma;};SignalSettings filters;TradingSettings settings;IndicatorHandles indicators;SignalDirection strategySignals[7];SignalDirection higherDirection=SIGNAL_NONE;double asianHigh=0.0,asianLow=999999.0;datetime asianRangeDay=0;string selectedStrategy="",selectedReason="";void InitializeSignalSettings(){ filters.asian=true; filters.asianSession=true; filters.asianPaddingPips=3.0; filters.sweep=true; filters.extendedSwing=true; filters.fairValueGap=true; filters.fairValueGapPoints=15.0; filters.consensus=true; filters.consensusPercent=70.0; filters.slowTrend=true; filters.squeeze=true; filters.squeezeAtr=1.5; filters.volumeClimax=true; filters.volumeMultiplier=1.8; filters.volumeWick=0.5; filters.momentum=true; filters.momentumRsiLow=48.0; filters.momentumRsiHigh=68.0; filters.reversion=true; filters.reversionAtr=2.2; filters.reversionRsiHigh=75.0; filters.reversionRsiLow=25.0; filters.wickConfirmation=true; filters.higherTrend=true; filters.higherTrendH1=true; filters.rolloverGuard=true; filters.forceBreakeven=true; for(int i=0;i<7;i++) filters.timeframes[i]=true;}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 27.0 · Personal-use licenceThe 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.
Parameter handbook with initial values, sizing formulas and usage notes.
MT5 input preset. Review the settings before use.
A concise welcome, installation and compilation guide, with licence terms and support details.
Testing
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 v27.0 · 45
Initial settings from the delivered source. Review and test changes before using them.
Explore the inputs below to shape the EA around your research, risk preferences and workflow. Outgoing EA order comments use @MQLume and retain required strategy identifiers. Comment inputs remain for saved-setting compatibility and do not remove the execution label.
Read PARAMETERS.pdf alongside README.txt for the meaning, defaults and operating notes behind the short input labels.
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Scalp Mode ([ALL ACTIVE] / Best Quant / etc.)InpDefaultScalpMode | MODE_ALL_ACTIVE |
Trigger Timeframe (M5)InpDefaultTriggerTF | PERIOD_M5 |
Auto-Execute Armed by DefaultInpAutoExecute | true |
ARMOR7 Drawdown Hedge LockInpEnableARMOR7 | true |
Flash Spike Freeze Guard (News Shield)InpEnableVelocity | true |
Max Daily Equity Loss LimitInpEnableDailyLoss | true |
Loss Limit Mode ($ or %)InpDailyLossMode | LIMIT_BALANCE_PERCENT |
Daily Loss Limit Figure ($ or %)InpMaxDailyLossVal | 100.0 |
Daily Profit Target Circuit BreakerInpEnableDailyTarget | true |
Profit Target Mode ($ or %)InpDailyTargetMode | LIMIT_BALANCE_PERCENT |
Daily Profit Target Figure ($ or %)InpDailyTargetVal | 100.0 |
Daily Reset Timezone (UTC/GMT Offset: 0=UTC, +2=EET, +7=ICT)InpTimezoneGMTOffset | 0 |
Post-Profit Freeze Guard (Anti-Chasing)InpEnableProfitCooldown | true |
Post-Profit Freeze Duration (Seconds: 30s)InpProfitCooldownSec | 30 |
Spread Quality Shield (Reject Night Spikes)InpFilterMaxSpreadRatio | true |
Max Allowable Gold Spread in Pips ($0.35)InpMaxSpreadPip | 3.5 |
[USE SL] Stop LossInpUseSL | true |
[USE TP] Mandatory Take Profit CheckboxInpUseTP | true |
Fixed Base Lot Size (No Martingale Multiplier)InpDefaultLot | 0.01 |
Dynamic Balance % Risk per TradeInpAutoRiskLot | false |
Risk % per Trade (if Auto Lot on: 1% Default)InpRiskPercent | 1.0 |
Default Stop Loss in Pips ($5.00 Price on Gold)InpDefaultSL_Pips | 50.0 |
Default Take Profit in Pips ($10.00 Price - 1:2 RR)InpDefaultTP_Pips | 100.0 |
[AUTO ATR SL] Dynamic ATR Stop LossInpAutoATR_SL | false |
[AUTO ATR TP] Dynamic ATR Take ProfitInpAutoATR_TP | false |
[MAX TRADES] Strict Single-Shot Sniper (Max 1 Open Position)InpMaxOpenPositions | 1 |
Expert Magic NumberInpMagicNumber | 777778 |
Manage Manual Trades on ChartInpManageManualTrades | true |
Auto Breakeven ShieldInpEnableAutoBE | true |
Breakeven Activation Pips ($0.80)InpBE_TriggerPips | 8.0 |
Breakeven Lock Pips ($0.20 Price)InpBE_LockPips | 2.0 |
Bank Partial Profit ScalpInpEnablePartialTP | true |
Partial TP Distance Pips ($1.50)InpPartialTP_Pips | 15.0 |
Dynamic Trailing Stop for Gold RunnersInpEnableTrailingStop | true |
Trailing Profit Distance Behind Price (2.0 to 3.0 Price)InpTrailDistPrice | 2.5 |
Trailing Start Activation Pips (2.0 Price / $2.00)InpTrailStartPips | 20.0 |
Enable Telegram Alerts (Set True if using Bot)InpEnableTelegram | false |
Bot Token (e.g. 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11)InpTelegramBotToken | "" |
Chat ID (Your Personal or Group Chat ID)InpTelegramChatID | "" |
Play Audio ChimesInpSoundAlerts | true |
Draw Asian High/Low Lines on ChartInpDrawAsianLines | true |
Draw Basket Average Entry LineInpDrawAEPLine | true |
Show Background Gold Logo Watermark ("G7")InpShowWatermark | true |
Auto-Shift Chart Right of DashboardInpAutoChartShift | true |
Order comment brand (fixed; strategy tag is retained)InpOrderComment | "@MQLume" |
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
A configurable portfolio of 20 gold modules combines grid additions, virtual cycle exits and exposure controls.

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

EA only · EX5
Explore range breakouts across five markets from one chart, with daily ATR filters and configurable portfolio exposure.

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