
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
Explore an active gold scalping project for MT5. Customise position sizing, trading hours, spread controls, stop loss and trailing exits. The EA edition includes the compiled program and guides; the source edition lets you explore the logic and develop changes with an AI coding assistant.
Built for MetaTrader 5. A complete source project, clear inputs and practical documentation give you control over your next build.
Trading setup
XAUUSD · M1 scalping with flexible sizing and trade management.
These are marketplace specifications, not a guarantee of suitable capital or performance.
Explore 50 lines of the project's MQL5 source. Scroll inside the editor to discover more.
#property copyright "Copyright 2026, MQLume"#property link "https://mqlume.com"#property version "7.10"#property strictinput int Magic = 212777; // Strategy IDinput string tcomment = "@MQLume"; // Execution Labelenum PositionMode { BuyAndSell=0, OnlyBuy=1, OnlySell=2 };enum VolumeMode { FixedLot=0, RiskPercent=1 };enum ExitMode { AdaptiveMode=0 };input PositionMode TradeDirection = BuyAndSell; // Position Modeinput VolumeMode LotMode = FixedLot;input double Lots = 0.01; // Initial Volumeinput double Risk = 0.0; // Risk %input bool UseRecoveryMode = false;input double RecoveryMultiplier = 1.89;input bool UseAggresiveMode = false;input double AggresiveMultiplier = 1.89;input bool DynamicLotIncrease = false;input double LotIncrease = 0.01;input int StartIncreaseFromOrder = 5;input int maxOrders = 5; // Maximum Positionsinput int EntryDistance = 40; // Distanceinput bool SAR = true; // Parabolic Filterinput bool HiddenTakeProfit = false;input ExitMode TakeProfitA = AdaptiveMode; // Take Profitinput int TakeProfit = 0;input bool HiddenStopLoss = false;input ExitMode StopLossA = AdaptiveMode; // Stop Lossinput int StopLoss = 0;input ExitMode TrailingStopA = AdaptiveMode; // Trailing Stopinput int TrailingStopActivation = 0;input int TrailingStopDistance = 50;input int TrailingStopStep = 20;input int totalSL = 0; // Emergency Basket Stop [points]input double DailyProfit = 0.0; // Daily Target [if 0 - not active]input double maxLoss = 0.0; // Equity Protection [if 0 - not active]input int MaxSlippage = 10;input bool EnableSpreadProtection = true;input int MaxSpreadForTrading = 50;input bool EnableCandleSizeFilter = true;input int CandleLookback = 20;input double MaxCandleSizeMultiplier = 2.5;input bool UseCurrentCandle = true;input bool EnableATRFilter = true;input int ATRPeriod = 14;input double MinATRMultiplier = 0.5;input double MaxATRMultiplier = 2.5;input int ATRLookback = 50;input bool EnableTickActivityFilter = 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 7.1 · Personal-use licenceComplete, editable single-file source. Read the logic, customise it and compile your own EA.
The compiled EA accompanying the source. Recompile after editing the MQ5.
A concise welcome, installation and compilation guide, with licence terms and support details.
PARAMETERS.pdf documents all 88 fields. Source edition includes MQ5, EX5, README.txt, PARAMETERS.pdf.
MT5 input preset. Review the settings before use.
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 v7.1 · 88
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.
Explore these controls in the included parameter guide.
| Source input key | Initial value |
|---|---|
Strategy IDMagic | 212777 |
Execution Labeltcomment | @MQLume |
Position ModeTradeDirection | BuyAndSell |
Lot ModeLotMode | FixedLot |
Initial VolumeLots | 0.01 |
Risk %Risk | 0.0 |
Use Recovery ModeUseRecoveryMode | false |
Recovery MultiplierRecoveryMultiplier | 1.89 |
Use Aggresive ModeUseAggresiveMode | false |
Aggresive MultiplierAggresiveMultiplier | 1.89 |
Dynamic Lot IncreaseDynamicLotIncrease | false |
Lot IncreaseLotIncrease | 0.01 |
Start Increase From OrderStartIncreaseFromOrder | 5 |
Maximum PositionsmaxOrders | 5 |
DistanceEntryDistance | 40 |
Parabolic FilterSAR | true |
Hidden Take ProfitHiddenTakeProfit | false |
Take ProfitTakeProfitA | AdaptiveMode |
Take ProfitTakeProfit | 0 |
Hidden Stop LossHiddenStopLoss | false |
Stop LossStopLossA | AdaptiveMode |
Stop LossStopLoss | 0 |
Trailing StopTrailingStopA | AdaptiveMode |
Trailing Stop ActivationTrailingStopActivation | 0 |
Trailing Stop DistanceTrailingStopDistance | 50 |
Trailing Stop StepTrailingStopStep | 20 |
Emergency Basket Stop [points]totalSL | 0 |
Daily Target [if 0 - not active]DailyProfit | 0.0 |
Equity Protection [if 0 - not active]maxLoss | 0.0 |
Max SlippageMaxSlippage | 10 |
Enable Spread ProtectionEnableSpreadProtection | true |
Max Spread For TradingMaxSpreadForTrading | 50 |
Enable Candle Size FilterEnableCandleSizeFilter | true |
Candle LookbackCandleLookback | 20 |
Max Candle Size MultiplierMaxCandleSizeMultiplier | 2.5 |
Use Current CandleUseCurrentCandle | true |
Enable A T R FilterEnableATRFilter | true |
A T R PeriodATRPeriod | 14 |
Min A T R MultiplierMinATRMultiplier | 0.5 |
Max A T R MultiplierMaxATRMultiplier | 2.5 |
A T R LookbackATRLookback | 50 |
Enable Tick Activity FilterEnableTickActivityFilter | true |
Min Ticks Per Time PeriodMinTicksPerTimePeriod | 5 |
TickActivityPeriod [s]TickActivityPeriod | 60 |
Enable Volatility FilterEnableVolatilityFilter | true |
Volatility Check SecondsVolatilityCheckSeconds | 10 |
Max Price Deviation PointsMaxPriceDeviationPoints | 150 |
Enable Volatility Spike DetectorEnableVolatilitySpikeDetector | false |
SpikeWindow1 [s]SpikeWindow1 | 1 |
SpikeThresholdPoints1SpikeThreshold1 | 250 |
SpikeWindow2 [s]SpikeWindow2 | 3 |
SpikeThresholdPoints2SpikeThreshold2 | 500 |
SpikeWindow3 [s]SpikeWindow3 | 5 |
SpikeThresholdPoints3SpikeThreshold3 | 800 |
Spike Cooldown MinutesSpikeCooldownMinutes | 5 |
AI FilterAIFilterInit | true |
Time ProtectionTimeProtection | --- Time Settings --------------------- |
All SessionsAllSessions | true |
Sydney SessionSydneySession | false |
Tokyo SessionTokyoSession | false |
London SessionLondonSession | false |
New York SessionNewYorkSession | false |
24 hours TradingTrading24h | false |
Monday TradingMonday | true |
Monday Session StartMondayStartTime | 08:00 |
Monday Session EndMondayEndTime | 18:00 |
Tuesday TradingTuesday | true |
Tuesday Session StartTuesdayStartTime | 08:00 |
Tuesday Session EndTuesdayEndTime | 18:00 |
Wednesday TradingWednesday | true |
Wednesday Session StartWednesdayStartTime | 08:00 |
Wednesday Session EndWednesdayEndTime | 18:00 |
Thursday TradingThursday | true |
Thursday Session StartThursdayStartTime | 08:00 |
Thursday Session EndThursdayEndTime | 18:00 |
Friday TradingFriday | true |
Friday Session StartFridayStartTime | 08:00 |
Friday Session EndFridayEndTime | 18:00 |
NFP Trading PermissionTradingNonFarmFriday | false |
Holiday Trading Permission [12Dec-12Jan]TradingDuringHolidays | false |
News ProtectionNewsProtection | --- News Protection Settings --------------------- |
News ProtectionCheckNewsFilterInit | true |
News Pause BeforedoNotTradeBeforeInMinutes | 90 |
News Pause AfterdoNotTradeAfterInMinutes | 90 |
USD Event FilterReportForUSD | true |
EUR Event FilterReportForEUR | true |
AI status endpoint (optional HTTPS URL)AiEndpoint | |
AI authorization header value (optional)AiAuthorization |
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.
Support: while the product is actively maintainedMissing 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.
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
Explore gold pending-entry strategies with adaptive portfolio selection, partial closes and trailing controls.


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