Make the strategy your own.

With the source in your hands, your ideas can go further than the settings panel.

No extra dependencies to install

Open your source in MetaEditor and start building. Projects use self-contained code or the standard libraries already included with MT5.

Unlimited personal use

Study, customise and trade on your own accounts. Your EA source gives you the freedom to keep refining your ideas.

Pay once. No activation or usage fees.

One purchase per source project. MQLume does not charge by the number of activations or uses.

Vibe coding. Your trading judgement.

Bring your ideas to an AI coding assistant. Use the editable MQL5 project as your starting point, and stay in control of every change.

  1. Describe your idea

    Ask for a session filter, clearer logging or a different risk rule.

  2. Review the change

    Read the proposed code, check the logic and compile it in MetaEditor.

  3. Test your version

    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

An EA you can make your own.

Gold breakout strategy

The Gold Reaper trades breaks of significant support and resistance on XAUUSD. It uses several confirmation rules and internal strategies across multiple timeframes. Trade frequency ranges from conservative to very active; the automatic mode selects frequency and volume using the account size and chosen drawdown setting.

Trades use Stop Loss and Take Profit protection, with moving stop and target management as a position develops. The strategy is a breakout system rather than a grid or martingale approach.

Main features and initial setup

Attach it to XAUUSD, choose automatic or manual trade frequency, and configure the preferred drawdown and volume settings. Use H1 with a minimum account balance reference of USD 600. These are setup references, not a guaranteed loss limit or account suitability assessment.

Backtesting

Test XAUUSD with the default settings, changing the drawdown input or manually comparing frequency levels. The tester's chart timeframe does not determine the internal strategy timeframes. Fixed StartLots requires a manually chosen trade frequency as well.

Display and execution parameters

  • ShowInfoPanel controls the chart information display. The panel-size adjustment can be increased to 2 on a 4K display. Updating the panel during tests can be disabled to reduce overhead.
  • Maximum spread limits whether pending orders may be placed.
  • Friday Stop Hour accepts hours from 0 to 23 for a weekend cutoff; 25 disables this restriction.
  • SetSL_TP_After_Entry is intended for brokers that reject protective levels on pending orders. Virtual expiration is intended for brokers that reject pending-order expiry times.
  • Randomization varies entry, exit and trailing values; 50 is the example given. It changes execution details, not the underlying product identity.
  • BaseMagicNumber identifies the strategy's orders. The comment input labels trades, subject to the edition's actual comment behavior.

Volume and account protection

Select fixed volume through StartLots or sizing based on the allowed-drawdown configuration. StartLots also acts as the minimum volume under the other sizing methods. Automatic sizing uses the strategy's historical drawdown reference; its setting is not a forecast of future maximum loss.

Daily drawdown protection can close trades and pending orders and suspend trading until the next day. Equity can be used instead of balance for sizing. OnlyUp prevents volume from decreasing after losses, making that choice more aggressive.

NFP and broker time

EnableNFP_Filter controls the NFP restriction. Separate settings determine whether positions and pending orders are closed before the event and how long entries remain paused afterward. Broker winter and summer GMT offsets can be supplied manually, including during backtests.

The automatic GMT function requires worldtimeserver.com to be permitted in MT5's Expert Advisors WebRequest settings. Use the configuration and input definitions supplied with your edition when setting up this connection.

Explore the parameters
No extra MQH or DLL downloads

Project specifications

Platform
MetaTrader 5 / MQL5; not compatible with MT4
Version
5.6
Dependencies
MT5 standard libraries and the supplied project resources. No separate DLL or custom MQH download.
Inputs
81 input entries
Build & testing
Compile in MT5 MetaEditor. See README.txt for installation and PARAMETERS.pdf for parameter guidance.

Trading setup

Trading specifications

Editable MQL5 source for a gold breakout Expert Advisor. Explore nine strategy switches, position sizing, trailing stops and news controls in one source file.

Choose position sizing and account settings to suit your trading configuration.

Symbol
XAUUSD
Chart timeframe
M1

Inside the source

Explore 50 lines of the project's MQL5 source. Scroll inside the editor to discover more.

MQL5 / .mq5
The Gold Reaper MT5 5.6[MQLume].mq5v5.6
int OnInit(void){   if(!ValidateUserOrderComment()) return INIT_PARAMETERS_INCORRECT;   g_initialized=false;   g_fatalError=false;   g_interestRateNewsLatch=false;   g_cpiNewsLatch=false;   g_tradingSessionsLogged=false;   ZeroMemory(g_strategyConfig);   ZeroMemory(g_strategyState);   ZeroMemory(g_positionConfig);   ZeroMemory(g_positionState);   ZeroMemory(g_dispatchClock);   ZeroMemory(g_brokerTime);   ZeroMemory(g_dailyDrawdown);   ZeroMemory(g_tradeCaches);   ZeroMemory(g_startupValues);   ZeroMemory(g_dashboard);   ArrayInitialize(g_strategyLots,0.0);   ArrayInitialize(g_strategySwingHigh,0.0);   ArrayInitialize(g_strategySwingLow,0.0);   ArrayInitialize(g_strategyProfit,0.0);   ArrayInitialize(g_averageTradeProfit,0.0);   ArrayInitialize(g_closedTradeCount,0);   for(int i=0;i<9;i++)g_strategyEnabled[i]=(i<3);   // Configure synchronous requests before loading any strategy.   g_tradeExecutor.SetExpertMagicNumber(0);   g_tradeExecutor.SetDeviationInPoints(10);   g_tradeExecutor.SetTypeFilling(ORDER_FILLING_FOK);   g_tradeExecutor.SetAsyncMode(false);   g_tradeExecutor.SetMarginMode();   g_strategyState.calendarRefreshEnabled=true;   g_strategyState.lastNfpFetch=0;   g_strategyState.previousCapital=0.0;   if(!IsInitializedValidityBranchEnabled())return INIT_FAILED;   InitializeTickDispatch(BacktestSpeed,g_dispatchClock);   if(EnableNFP_Filter)   {      g_strategyState.nextNfpServer=ReadNextNfpCalendarTime();      Print("Next NFP: "+TimeToString(g_strategyState.nextNfpServer,TIME_DATE|TIME_SECONDS));   }   if(EnableIR_Filter)   {      g_strategyState.nextIrServer=ReadNextCalendarRelease(NEWS_INTEREST_RATE);      Print("Next Interest Rate decision: "+TimeToString(g_strategyState.nextIrServer,TIME_DATE|TIME_SECONDS));   }   if(EnableCPI_Filter)   {      g_strategyState.nextCpiServer=ReadNextCalendarRelease(NEWS_CPI);      Print("Next CPI: "+TimeToString(g_strategyState.nextCpiServer,TIME_DATE|TIME_SECONDS));

Your next build starts here.

Included files

Complete source, practical documentation and reference files to help you understand, customise and test your EA.

One project.
Complete source.

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.6 · Personal-use licence
  • PDF

    PARAMETERS.pdf

    PARAMETERS.pdf explains the current inputs, defaults and usage. Preserve all supplied project subfolders when compiling.

    Included
  • SET

    Presets/Default_XAUUSD_ECN.set

    MT5 input preset. Review the settings before use.

    Included
  • TXT

    README.txt

    A concise welcome, installation and compilation guide, with licence terms and support details.

    Included
  • EX5

    The Gold Reaper MT5 5.6[MQLume].ex5

    The compiled EA accompanying the source. Recompile after editing the MQ5.

    Included
  • MQ5

    The Gold Reaper MT5 5.6[MQLume].mq5

    Complete, editable single-file source. Read the logic, customise it and compile your own EA.

    Included

Testing

Build confidence through 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 v5.6 · 81

Parameter guide

Initial settings from the delivered source. Review and test changes before using them.

An optional personal suffix follows @MQLume and required strategy identifiers. Leave blank to keep the standard comment.

Read PARAMETERS.pdf alongside README.txt for the meaning, defaults and operating notes behind the short input labels.

How to read EA parameters
Settings 1 · Panel settings

Read the supplied parameter guide for units and interactions before changing these initial values.

Settings 1 · Panel settings
Source input keyInitial value
- - -lijntjeDisplay text
UseVariableValuesUseVariableValuestrue
AdjustLotsizeToVariableValuesAdjustLotsizeToVariableValuestrue
ShowInfoPanelShowInfoPaneltrue
update infopanel during testingUpdateInfoTestingfalse
Adjustment for Infopanel sizeInfoPanelSizeAdjust1.0
Force Font Size (0=disabled)SetFontSize0
Settings 2 · Backtest Speed settings

Read the supplied parameter guide for units and interactions before changing these initial values.

Settings 2 · Backtest Speed settings
Source input keyInitial value
- - -BacktestSpeed_stringDisplay text
Backtest SpeedBacktestSpeednormalBACKTEST_NORMAL
Settings 3 · settings

Read the supplied parameter guide for units and interactions before changing these initial values.

Settings 3 · settings
Source input keyInitial value
- - -spreadfilterDisplay text
Allow Buy TradesAllowBuyTradestrue
Allow Sell TradesAllowSellTradestrue
TradeFrequencyTradeFrequencyAuto (based on balance and risk)FREQUENCY_AUTOMATIC
Max Allowed SpreadMaxSpread500.0
UseHL_TrailingSLUseHL_TrailingSLtrue
Friday stop hour (brokertime; close all trades+pending)FridayStopHour25
delete pending ordersFridayClosePendingtrue
close open tradesFridayCloseOpentrue
setSL_TP_After_EntrysetSL_TP_After_Entryfalse
Use Virtual ExpirationVirtual_expirationtrue
Randomization (entries and exit) in pipsRandomization0.0
Fake Breakout FilterFakeOutFilterMediumFAKEOUT_MEDIUM
Enable Virtual SL/TP (trailing by market close)EnableVirtualSLTPfalse
Seconds before the real SL is pulled up to the virtual SL (0 =SetVSL_to_hardSL_sec_delay99
Base MagicnumberST1_MagicNumber8000
Comment for tradesST1_Comment"@MQLume"
RemoveCommentSuffixRemoveCommentSuffixfalse
Settings 4 · NFP_FILTER

Read the supplied parameter guide for units and interactions before changing these initial values.

Settings 4 · NFP_FILTER
Source input keyInitial value
NFP_FILTERNFP_FILTERDisplay text
EnableNFP_FilterEnableNFP_Filtertrue
UseMQL5CalendarUseMQL5Calendartrue
AutoGMTAutoGMTtrue
GMT_OFFSET_Winter (AutoGMT=false or backtesting)Broker_GMT_OFFSET_Winter2
MT_OFFSET_Summer (AutoGMT=false or backtesting)Broker_GMT_OFFSET_Summer3
NFP_CloseOpenTradesNFP_CloseOpenTradestrue
NFP_ClosePendingOrdersNFP_ClosePendingOrderstrue
NFP_MinutesBeforeNFP_MinutesBefore100
NFP_MinutesAfterNFP_MinutesAfter60
Settings 5 · Interest Rate Filter

Read the supplied parameter guide for units and interactions before changing these initial values.

Settings 5 · Interest Rate Filter
Source input keyInitial value
- - -IR_FILTERDisplay text
EnableIR_FilterEnableIR_Filterfalse
IR_CloseOpenTradesIR_CloseOpenTradestrue
IR_ClosePendingOrdersIR_ClosePendingOrderstrue
IR_MinutesBeforeIR_MinutesBefore100
IR_MinutesAfterIR_MinutesAfter60
Settings 6 · CPI Filter

Read the supplied parameter guide for units and interactions before changing these initial values.

Settings 6 · CPI Filter
Source input keyInitial value
- - -CPI_FILTERDisplay text
EnableCPI_FilterEnableCPI_Filterfalse
CPI_CloseOpenTradesCPI_CloseOpenTradestrue
CPI_ClosePendingOrdersCPI_ClosePendingOrderstrue
CPI_MinutesBeforeCPI_MinutesBefore100
CPI_MinutesAfterCPI_MinutesAfter60
Settings 7 · Propfirm unique trades settings

Read the supplied parameter guide for units and interactions before changing these initial values.

Settings 7 · Propfirm unique trades settings
Source input keyInitial value
- - -propfirmsettingsDisplay text
AdjustEntryAdjustEntry0.0
AdjustSLAdjustSL0.0
AdjustTPAdjustTP0.0
AdjustTrailSLAdjustTrailSL0.0
AdjustTrailTPAdjustTrailTP0.0
AdjustBreakEvenAdjustBreakEven0.0
Settings 8 · LotSize Settings

Read the supplied parameter guide for units and interactions before changing these initial values.

Settings 8 · LotSize Settings
Source input keyInitial value
- - -LotSizeSettingsDisplay text
manually set balance to use (if > 0)ManualBalance0.0
Lotsize calculation methodRiskMax Allowed Total DrawdownLOTS_TOTAL_DRAWDOWN
StartLotsStartLots0.01
Max Allowed TOTAL DrawdownMaxAllowedDD30.0
Weighted LotsizeUseWeightedLotstrue
Max Risk Per StratMaxRiskPerStrategy_1.0
Set Max DAILY Drawdown (Prop Firms)PropFirmMaxDailyDD0.0
OnlyUpOnlyUptrue
Reset Highest Balance for OnlyUpResetHighestBalancefalse
Reset Highest Balance on a withdrawalResetHighestBalanceOnWithdrawaltrue
CheckMarginCheckMargintrue
Use Equity Instead of BalanceUseEquityfalse
Settings 9 · Manual Strategy Selection

Read the supplied parameter guide for units and interactions before changing these initial values.

Settings 9 · Manual Strategy Selection
Source input keyInitial value
- - -ManualStratSelectDisplay text
- - -ManStratWarnDisplay text
Run Strategy 1 (low risk)RunStrat1true
Run Strategy 2 (low risk)RunStrat2true
Run Strategy 3 (low risk)RunStrat3true
Run Strategy 4 (med risk)RunStrat4true
Run Strategy 5 (med risk)RunStrat5true
Run Strategy 6 (med risk)RunStrat6true
Run Strategy 7 (med risk)RunStrat7true
Run Strategy 8 (high risk)RunStrat8true
Run Strategy 9 (high risk)RunStrat9true
Custom order comment

An optional personal suffix follows @MQLume and required strategy identifiers. Leave blank to keep the standard comment.

Custom order comment
Source input keyInitial value
Custom text (up to 18 characters)UserComment

Support after delivery

Bug fixes are included.

While the product is actively maintained, we investigate and fix reproducible defects in the delivered, unmodified code that conflict with the product description.

Delivery & compilation

Missing files, incorrect delivery and original-code compilation failures in the stated environment.

Code & documentation defects

Provide the release, settings, logs and reproduction steps so we can assess and resolve the issue.

Support scope

Start with the included guide and contact us for help with delivery or reproducible software defects. Trading results are not guaranteed.

FAQ

Frequently asked questions

Help centre
What am I buying?

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.

Refunds after delivery

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.

Delivery and bug reports

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.

Delivery & support

  1. 1

    Review

    Read the files, environment and terms

  2. 2

    Confirm

    Check the source version and purchase terms

  3. 3

    Pay

    Payment is checked with the provider or on the selected blockchain

  4. 4

    Automatic delivery

    Fast, automatic delivery after payment confirmation. No waiting for manual dispatch.

MQLume Bespoke

Built around your ambition.

Explore bespoke services →

Have something more specific in mind?

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 downloads. Real source files.

FREE

Lizard [MQLume]

MQL5 / MT5Version v2.21

Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.

US$149.00FREE
FREE

Scraper Gold [MQLume]

MQL5 / MT5Version v3.80

Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.

US$95.00FREE
FREE

EA Black Dragon [MQLume]

MQL5 / MT5Version v13.0

Trend-based entries with optional grid additions, side controls and virtual exits.

US$30.00FREE
FREE

Hamster Scalping [MQLume]

MQL5 / MT5Version v21.0

RSI entries with two ATR filters, configurable sessions and optional grid management.

US$30.00FREE

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.

Journal Starter

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.

Reviews & questions

Loading…

MQLume

More to explore. A community to share it with.

Stay close to MQLume, wherever you like to learn.

YouTube

See our EAs in action. Explore backtests, walkthroughs and practical guides.

Watch on YouTube

Telegram

Meet other EA users, share ideas and keep up with what’s new.

Join the community Follow official updates

Checkout

The Gold Reaper [MQLume]

Version 5.6 · Personal-use licence

Order total
US$999.99

Account downloads · email delivery

Screenshot · The Gold Reaper [MQLume]

Screenshot — The Gold Reaper [MQLume]
Enlarge image ↗

Cart

One personal-use licence per project. Each project can be added once.

Your cart is waiting for its first passenger.

Choose an EA or source edition to get started.

Continue shopping