
The Gold Phantom [MQLume] 2.5: +210.73% | XAUUSD · 12-month backtest
Return, drawdown, monthly results and selected settings for The Gold Phantom [MQLume] 2.5.

Return, drawdown, monthly results and selected settings for The Gold Phantom [MQLume] 2.5.
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
The source edition includes editable MQ5, compiled EX5, README and PARAMETERS.pdf. Explore and customise separate strategy timeframes, direction filters and sizing modes. No preset or separate DLL/model download is supplied.
Built for MetaTrader 5. A complete source project, clear inputs and practical documentation give you control over your next build.
Trading setup
Nine gold breakout strategies combine pending entries with position protection and portfolio controls.
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.
double QuotePrice(const double value){ return NormalizeDouble(value,context.digits);}bool CurrentPositionMatches(){ return PositionGetInteger(POSITION_MAGIC)==context.magic && PositionGetString(POSITION_SYMBOL)==_Symbol;}bool CurrentOrderMatches(){ return OrderGetInteger(ORDER_MAGIC)==context.magic && OrderGetString(ORDER_SYMBOL)==_Symbol;}int PositionCount(const ENUM_POSITION_TYPE direction){ int count=0; for(int i=PositionsTotal();i>=0;i--) if(PositionGetTicket(i)>0 && CurrentPositionMatches() && PositionGetInteger(POSITION_TYPE)==direction) count++; return count;}int PendingCount(const ENUM_ORDER_TYPE type,const bool allStrategies=false){ int count=0; for(int i=OrdersTotal();i>=0;i--) { if(OrderGetTicket(i)==0) continue; long magic=OrderGetInteger(ORDER_MAGIC); bool matches=allStrategies ? magic>ST1_MagicNumber && magic<=ST1_MagicNumber+15 : magic==context.magic; if(matches && OrderGetString(ORDER_SYMBOL)==_Symbol && OrderGetInteger(ORDER_TYPE)==type) count++; } return count;}bool PendingAtLevel(const bool buy,const double level){ double price=buy ? level+context.settings.buyOffset*context.pip : level-context.settings.sellOffset*context.pip; ENUM_ORDER_TYPE type=buy ? ORDER_TYPE_BUY_STOP : ORDER_TYPE_SELL_STOP; for(int i=OrdersTotal();i>=0;i--) if(OrderGetTicket(i)>0 && CurrentOrderMatches() && OrderGetInteger(ORDER_TYPE)==type && MathAbs(OrderGetDouble(ORDER_PRICE_OPEN)-price)<context.pip*context.settings.pendingTolerance) return true; return false;}double FindBreakoutLevel(const bool buy){ ENUM_TIMEFRAMES period=context.settings.signalPeriod; for(int bar=context.settings.newerBars+1;bar<=context.settings.searchBars;bar++) { bool pivot=true; double level=buy ? iHigh(_Symbol,period,bar) : iLow(_Symbol,period,bar); for(int j=bar;j>=bar-context.settings.newerBars;j--)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 2.5 · 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.
Parameter handbook with initial values, sizing formulas and usage notes.
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 v2.5 · 80
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 |
|---|---|
- - -lijntje | Display text |
ShowInfoPanel | true |
update infopanel during testingUpdateInfoTesting | false |
Adjustment for Infopanel sizeInfoPanelSizeAdjust | 1.0 |
Force Font Size (0=disabled)SetFontSize | 0 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -BacktestSpeed_string | Display text |
Backtest SpeedBacktestSpeed | normalBacktestSpeed_1 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -spreadfilter | Display text |
Allow Buy TradesAllowBuyTrades | true |
Allow Sell TradesAllowSellTrades | true |
TradeFrequency | Auto (based on balance and risk)TradeFrequency_5 |
Max Allowed SpreadMaxSpread | 500.0 |
Friday stop hour (brokertime; close all trades)FridayStopHour | 25 |
setSL_TP_After_Entry | false |
Use Virtual ExpirationVirtual_expiration | true |
Enable Virtual SL/TP (trailing by market close)EnableVirtualSLTP | false |
Seconds before the real SL is pulled up to the virtual SL (0 =SetVSL_to_hardSL_sec_delay | 99 |
Base MagicnumberST1_MagicNumber | 75000 |
Comment for trades (fixed @MQLume)ST1_Comment | "@MQLume" |
Legacy suffix setting (fixed @MQLume)RemoveCommentSuffix | false |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -GMT_FILTER | Display text |
autoGMT Live (recommended!)AutoGMT | true |
autoGMT BacktestAutoGMT_Backtest | true |
GMT_OFFSET_Winter (AutoGMT=false)Broker_GMT_OFFSET_Winter | 2 |
GMT_OFFSET_Summer (AutoGMT=false)Broker_GMT_OFFSET_Summer | 3 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -newsFilter | Display text |
UseMQL5Calendar | true |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -NFP_FILTER | Display text |
EnableNFP_Filter | true |
NFP_CloseOpenTrades | true |
NFP_ClosePendingOrders | true |
NFP_MinutesBefore | 100 |
NFP_MinutesAfter | 60 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -IR_FILTER | Display text |
EnableIR_Filter | false |
IR_CloseOpenTrades | true |
IR_ClosePendingOrders | true |
IR_MinutesBefore | 100 |
IR_MinutesAfter | 60 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -CPI_FILTER | Display text |
EnableCPI_Filter | false |
CPI_CloseOpenTrades | true |
CPI_ClosePendingOrders | true |
CPI_MinutesBefore | 100 |
CPI_MinutesAfter | 60 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -FakeBreakoutFilters | Display text |
Fake Breakout FilterFakeOutFilter | IntenseFakeOutFilter_2 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -propfirmsettings | Display text |
Randomization (entries and exit) in pipsRandomization | 0.0 |
AdjustEntry | 0.0 |
AdjustSL | 0.0 |
AdjustTP | 0.0 |
AdjustTrailSL | 0.0 |
AdjustTrailTP | 0.0 |
AdjustBreakEven | 0.0 |
Set Max DAILY DrawdownPropFirmMaxDailyDD | 0.0 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -LotSizeSettings | Display text |
AdjustLotsizeToVariableValues | true |
manually set balance to use (if > 0)ManualBalance | 0.0 |
Lotsize calculation methodRisk | Max Allowed Total DrawdownRisk_1234 |
Manual LotsizeStartLots | 0.01 |
Max Allowed TOTAL DrawdownMaxAllowedDD | 30.0 |
Max Risk Per StrategyMaxRiskPerStrategy_ | 1.0 |
OnlyUp | true |
Reset Highest Balance for OnlyUpResetHighestBalance | false |
Reset Highest Balance on a withdrawalResetHighestBalanceOnWithdrawal | true |
CheckMargin | true |
Use Equity Instead of BalanceUseEquity | false |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
- - -ManualStratSelect | Display text |
- - -ManDescr | Display text |
- - -ManStratWarn | Display text |
Run Strategy 1 (low risk)RunStrat1 | true |
Run Strategy 2 (low risk)RunStrat2 | true |
Run Strategy 3 (low risk)RunStrat3 | true |
Run Strategy 4 (med risk)RunStrat4 | true |
Run Strategy 5 (med risk)RunStrat5 | true |
Run Strategy 6 (med risk)RunStrat6 | true |
Run Strategy 7 (med risk)RunStrat7 | true |
Run Strategy 8 (high risk)RunStrat8 | true |
Run Strategy 9 (high risk)RunStrat9 | true |
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 GBPUSD entry batches with virtual entry levels, additional positions and recovery management.

Source code · MQ5 + EX5
Eight gold breakout profiles with pending entries, volatility-based distances, selectable strategies and configurable position management.

EA only · 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