
Ghost Scalper MT5 5.0: +60,837.91% in the latest 12-month gold test
XAUUSD · Four trading cores with independent sizing and exits. Explore a +60,837.91% historical simulation return, 29.89% maximum equity drawdown and the settings behind the result.

XAUUSD · Four trading cores with independent sizing and exits. Explore a +60,837.91% historical simulation return, 29.89% maximum equity drawdown and the settings behind the result.
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
Explore four gold trading cores in one MT5 project. Ghost A, B, C and D provide independent controls for direction, position sizing, stops and trailing exits. Start with the compiled EA and included guide, or explore the complete source with an AI coding assistant to understand the rules and shape your own changes.
Built for MetaTrader 5. A complete source project, clear inputs and practical documentation give you control over your next build.
Trading setup
XAUUSD · Four trading cores with independent sizing and exits.
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.
bool MQLumeLoadPanelImage(const string resource,const uint expectedWidth,const uint expectedHeight,uint &pixels[]){ uint width=0,height=0; return ResourceReadImage(resource,pixels,width,height) && width==expectedWidth && height==expectedHeight;}// Inputs and configuration options#property strict#property version "5.10"#property copyright "Copyright 2026, MQLume"#property link "https://mqlume.com"#property description "Ghost Scalper MT5 5.10"#include <Trade/Trade.mqh>class MQLumeTrade : public CTrade{protected: virtual bool OrderSend(const MqlTradeRequest &request, MqlTradeResult &result) { MqlTradeRequest labeledRequest = request; labeledRequest.comment = "@MQLume"; return CTrade::OrderSend(labeledRequest, result); }};enum MQLumeLotMode{ FIXED_LOT=0, // Fixed Lot RISK_PERCENT=1, // Risk Percent BALANCE_REFERENCE=2 // Risk per Balance};enum MQLumeExitMode{ STANDARD_EXIT=0, // Standard Trail CUSTOM_EXIT=1 // Custom};enum MQLumeSlipMode{ SLIP_SOFT=0, // Soft - 25% SLIP_MEDIUM=1, // Medium - 50% SLIP_HARD=2 // Hard - 100%};enum MQLumeWeekRisk{ WEEK_OFF=0, // OFF WEEK_REDUCE_25=1, // REDUCE 25% WEEK_REDUCE_50=2 // REDUCE 50%};enum MQLumeDashboard{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 5.10 · 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.
Bundled compile-time resource; preserve its relative path.
Bundled compile-time resource; preserve its relative path.
Bundled compile-time resource; preserve its relative path.
Bundled compile-time resource; preserve its relative path.
Bundled compile-time resource; preserve its relative path.
Bundled compile-time resource; preserve its relative path.
PARAMETERS.pdf explains the current inputs, defaults and usage. Preserve all supplied project subfolders when compiling.
MT5 input preset. Review the settings before use.
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 v5.10 · 113
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 |
|---|---|
Order comment (fixed to @MQLume)OrderCommentText | @MQLume |
Enable HIGH-impact USD news filterInpUseNewsFilter | false |
Minutes before a news eventInpNewsMinutesBefore | 30 |
Minutes after a news eventInpNewsMinutesAfter | 30 |
News week riskInpNewsWeekRiskMode | 0WEEK_OFF |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
InpNewsFOMC | true |
InpNewsCPI | true |
InpNewsNFPJobs | true |
InpNewsPCE | true |
InpNewsPPI | false |
InpNewsGDP | false |
InpNewsRetailSales | false |
InpNewsISM | false |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
InpWebRequestSetup | MT5: Tools > Options > Expert Advisors > Allow WebRequest |
InpWebRequestURL | https://nfs.faireconomy.media |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
InpDashboardMode | 2DASH_OFF |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
InpMagicCoreA | 2101 |
InpMagicCoreB | 2102 |
InpMagicCoreC | 2103 |
InpMagicCoreD | 2104 |
Enable Ghost AInpEnableCoreA | true |
Lot modeInpLotModeCoreA | 0FIXED_LOT |
Fixed lotInpFixedLotCoreA | 0.01 |
Risk percentInpRiskCoreA | 0.25 |
Balance referenceInpBalanceRefCoreA | 1000.0 |
Slippage calculationInpSlippageCalcCoreA | 1SLIP_MEDIUM |
Enable buyInpTradeABuy | true |
Exit modeInpExitModeCoreABuy | 0STANDARD_EXIT |
Custom stop lossInpCustomCoreABuySL | 800.0 |
Custom take profitInpCustomCoreABuyTP | 2500.0 |
Custom trail startInpCustomCoreABuyTrailStart | 250.0 |
Custom trail distanceInpCustomCoreABuyTrailDistance | 150.0 |
Custom trail stepInpCustomCoreABuyTrailStep | 80.0 |
Enable sellInpTradeASell | true |
Exit modeInpExitModeCoreASell | 0STANDARD_EXIT |
Custom stop lossInpCustomCoreASellSL | 800.0 |
Custom take profitInpCustomCoreASellTP | 2500.0 |
Custom trail startInpCustomCoreASellTrailStart | 250.0 |
Custom trail distanceInpCustomCoreASellTrailDistance | 150.0 |
Custom trail stepInpCustomCoreASellTrailStep | 80.0 |
Enable Ghost BInpEnableCoreB | true |
Lot modeInpLotModeCoreB | 0FIXED_LOT |
Fixed lotInpFixedLotCoreB | 0.01 |
Risk percentInpRiskCoreB | 0.25 |
Balance referenceInpBalanceRefCoreB | 1000.0 |
Slippage calculationInpSlippageCalcCoreB | 1SLIP_MEDIUM |
Enable buyInpTradeBBuy | true |
Exit modeInpExitModeCoreBBuy | 0STANDARD_EXIT |
Custom stop lossInpCustomCoreBBuySL | 800.0 |
Custom take profitInpCustomCoreBBuyTP | 2500.0 |
Custom trail startInpCustomCoreBBuyTrailStart | 250.0 |
Custom trail distanceInpCustomCoreBBuyTrailDistance | 150.0 |
Custom trail stepInpCustomCoreBBuyTrailStep | 80.0 |
Enable sellInpTradeBSell | true |
Exit modeInpExitModeCoreBSell | 0STANDARD_EXIT |
Custom stop lossInpCustomCoreBSellSL | 800.0 |
Custom take profitInpCustomCoreBSellTP | 2500.0 |
Custom trail startInpCustomCoreBSellTrailStart | 250.0 |
Custom trail distanceInpCustomCoreBSellTrailDistance | 150.0 |
Custom trail stepInpCustomCoreBSellTrailStep | 80.0 |
Enable Ghost CInpEnableCoreC | true |
Lot modeInpLotModeCoreC | 0FIXED_LOT |
Fixed lotInpFixedLotCoreC | 0.01 |
Risk percentInpRiskCoreC | 0.25 |
Balance referenceInpBalanceRefCoreC | 1000.0 |
Slippage calculationInpSlippageCalcCoreC | 1SLIP_MEDIUM |
Enable buyInpTradeCBuy | true |
Exit modeInpExitModeCoreCBuy | 0STANDARD_EXIT |
Custom stop lossInpCustomCoreCBuySL | 800.0 |
Custom take profitInpCustomCoreCBuyTP | 2500.0 |
Custom trail startInpCustomCoreCBuyTrailStart | 250.0 |
Custom trail distanceInpCustomCoreCBuyTrailDistance | 150.0 |
Custom trail stepInpCustomCoreCBuyTrailStep | 80.0 |
Enable sellInpTradeCSell | true |
Exit modeInpExitModeCoreCSell | 0STANDARD_EXIT |
Custom stop lossInpCustomCoreCSellSL | 800.0 |
Custom take profitInpCustomCoreCSellTP | 2500.0 |
Custom trail startInpCustomCoreCSellTrailStart | 250.0 |
Custom trail distanceInpCustomCoreCSellTrailDistance | 150.0 |
Custom trail stepInpCustomCoreCSellTrailStep | 80.0 |
Enable Ghost DInpEnableCoreD | true |
Lot modeInpLotModeCoreD | 0FIXED_LOT |
Fixed lotInpFixedLotCoreD | 0.01 |
Risk percentInpRiskCoreD | 0.25 |
Balance referenceInpBalanceRefCoreD | 1000.0 |
Slippage calculationInpSlippageCalcCoreD | 1SLIP_MEDIUM |
Enable buyInpTradeDBuy | true |
Exit modeInpExitModeCoreDBuy | 0STANDARD_EXIT |
Custom stop lossInpCustomCoreDBuySL | 800.0 |
Custom take profitInpCustomCoreDBuyTP | 2500.0 |
Custom trail startInpCustomCoreDBuyTrailStart | 250.0 |
Custom trail distanceInpCustomCoreDBuyTrailDistance | 150.0 |
Custom trail stepInpCustomCoreDBuyTrailStep | 80.0 |
Enable sellInpTradeDSell | true |
Exit modeInpExitModeCoreDSell | 0STANDARD_EXIT |
Custom stop lossInpCustomCoreDSellSL | 800.0 |
Custom take profitInpCustomCoreDSellTP | 2500.0 |
Custom trail startInpCustomCoreDSellTrailStart | 250.0 |
Custom trail distanceInpCustomCoreDSellTrailDistance | 150.0 |
Custom trail stepInpCustomCoreDSellTrailStep | 80.0 |
Prop Firm ModeInpPropFirmMode | 0MQLUME_PROP_OFF |
Max Daily Drawdown % (0 = OFF)InpPropFirmDailyDrawdownPct | 4.0 |
Max Overall Drawdown % (0 = OFF)InpPropFirmOverallDrawdownPct | 6.0 |
Overall Drawdown ModeInpPropFirmOverallMode | 0MQLUME_PROP_STATIC |
Starting Balance (0 = account balance)InpPropFirmStartingBalance | 0.0 |
Max Risk Per Trade % (0 = OFF)InpPropFirmMaxRiskPerTradePct | 0.5 |
Max Total Open Risk % (0 = OFF)InpPropFirmMaxTotalOpenRiskPct | 2.0 |
Daily Profit Target % (0 = OFF)InpPropFirmDailyProfitTargetPct | 0.0 |
Safety Buffer %InpPropFirmSafetyBufferPct | 0.0 |
Daily Reset Hour (server time)InpPropFirmResetHour | 0 |
Daily Reset Minute (server time)InpPropFirmResetMinute | 0 |
Challenge Tracking IDInpPropFirmTrackingId | DEFAULT |
Limit ActionInpPropFirmLimitAction | 0MQLUME_PROP_BLOCK_ONLY |
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
Breakouts · Range and volatility entries

Source code · MQ5 + EX5
Nine gold breakout strategies combine pending entries with position protection and portfolio controls.

EA only · EX5
XAUUSD · Stop entries and flexible sizing

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