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.

Trading setup

Stated specifications

Gold breakout trading around support and resistance, with several internal strategies.

These are marketplace specifications, not a guarantee of suitable capital or performance.

Symbol
XAUUSD
Chart timeframe
H1
Minimum deposit
$600
Recommended deposit
Not stated
Account
Not stated
Leverage
Not stated
VPS
Not stated

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.1[MQLume].mq5v5.1
double NormalizeSwingPrice(const double value,const int digits){   if(!MathIsValidNumber(value) || value>=9223372036854775808.0 || value< -9223372036854775808.0)      return value;   long whole=(long)value;   uint udigits=(uint)digits;   int n=(udigits>10 ? 11 : (int)udigits);   double power=1.0;   for(int k=0;k<n;k++) power*=10.0;   long fraction=(long)((value-(double)whole)*power+(value>0 ? 0.5000001 : -0.5000001));   return (double)fraction/power+(double)whole;}// A zero divisor returns false before lotScale changes.bool CalculatePriceAndLotScales(const double reference,const double previousDailyOpen,   const bool useVariable,const bool adjustLots,   double &priceScale,double &lotScale){   double ratio=1.0;   if(reference>=1000.0) ratio=previousDailyOpen/reference;   priceScale=(useVariable ? ratio : 1.0);   if(adjustLots && priceScale==0.0) return false;   lotScale=(adjustLots ? 1.0/priceScale : 1.0);   if(priceScale==0.0) priceScale=1.0;   return true;}double CalculatePriceDistanceUnit(const double point,const int digits){   if(digits==3 || digits==5) return point*10.0;   if(digits==1) return point/10.0;   return point;}// Compare day-of-year: both transition dates remain outside DST for the whole day.bool IsAmericanDst(const datetime now){   MqlDateTime current;   if(!TimeToStruct(now,current) || current.year<1987) return false;   int year=current.year,firstMonth,lastMonth,firstDay,lastDay;   if(year<2007)   {      firstMonth=4;      lastMonth=10;      firstDay=(6*year-year/4+2)%7+1;      lastDay=31-((5*year)/4+1)%7;   }   else   {      firstMonth=3;

Overview

An EA you can make your own.

Explore 79 inputs and nine strategies in one editable project. Shape breakout logic, virtual stops and NFP, interest-rate and CPI controls around your research, then test every change.

Built for MetaTrader 5. A complete source project, clear inputs and practical documentation give you control over your next build.

No extra MQH or DLL downloads

Compile. Backtest. Demo. Then decide.

After compiling the purchased source, check its behaviour in the Strategy Tester. Test it on a demo account before deciding whether to trade live. Passing tests does not guarantee live returns.

Project specifications

Platform
MetaTrader 5 / MQL5; not compatible with MT4
Version
5.1
Dependencies
Uses only the Trade library included with MT5. No custom MQH or external DLL to install.
Inputs
79 input entries · 9 strategy switches
Build & testing
Compile in MT5 MetaEditor; consult RELEASE_NOTES.txt for the packaged build and testing record.

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.1 · Personal-use licence
  • MQ5

    The Gold Reaper MT5 5.1[MQLume].mq5

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

    Included
  • EX5

    The Gold Reaper MT5 5.1[MQLume].ex5

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

    Included
  • TXT

    README.txt

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

    Included
  • PDF

    PARAMETERS.pdf

    All 79 input entries explained, including defaults, units, menu choices and practical notes.

    Included
  • TXT

    RELEASE_NOTES.txt

    Build details, recorded test conditions, changes and known limits for the supplied package.

    Included
  • SET

    Presets/Default_XAUUSD_ECN.set

    One SET file matching the delivered defaults. Load it as a starting point for your own tests; it is not an optimized or guaranteed profitable setup.

    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.

Compile your starting point

Open the source in MetaEditor, compile it and explore the default settings. The included guides explain installation and parameters so you can begin customising.

Test across market cycles

For a broader view of your settings, we recommend backtesting with the past 10 years of real tick data where available, followed by testing on a demo account.

Before live use

Backtest your chosen settings, then test on a demo account before deciding whether to trade live. Past results do not guarantee future performance.

Version v5.1 · 79

Parameter guide

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.

Display & tester

Configure panel visibility, scaling and font size. BacktestSpeed: 1 = every quote, 2 = interval/new bar, 3 = new bar. VariableValues scales distances by price; its paired setting adjusts lots inversely.

Display & tester
Source input keyInitial value
lijntjeDisplay text
UseVariableValuestrue
AdjustLotsizeToVariableValuestrue
ShowInfoPaneltrue
update infopanel during testingUpdateInfoTestingfalse
Adjustment for Infopanel sizeInfoPanelSizeAdjust1.0
Force Font Size (0=disabled)SetFontSize0
BacktestSpeed_stringDisplay text
Backtest SpeedBacktestSpeednormal (1)BACKTEST_NORMAL
Orders & execution

Choose directions and frequency: 0–4 presets, 5 automatic, 6 manual. FridayStopHour 25 disables the hourly cutoff. Virtual SL/TP defaults off; the broker-SL synchronization delay defaults to 99 seconds, and 0 disables synchronization. Virtual exits require the EA to run; reinitialization clears the cached levels.

Orders & execution
Source input keyInitial value
spreadfilterDisplay text
Allow Buy TradesAllowBuyTradestrue
Allow Sell TradesAllowSellTradestrue
TradeFrequencyAuto (based on balance and risk) (5)FREQUENCY_AUTOMATIC
Max Allowed SpreadMaxSpread500.0
UseHL_TrailingSLtrue
Friday stop hour (brokertime; close all trades+pending)FridayStopHour25
delete pending ordersFridayClosePendingtrue
close open tradesFridayCloseOpentrue
setSL_TP_After_Entryfalse
Use Virtual ExpirationVirtual_expirationtrue
Randomization (entries and exit) in pipsRandomization0.0
Fake Breakout FilterFakeOutFilterMedium (2)FAKEOUT_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_CommentThe Gold Reaper MQLume
RemoveCommentSuffixfalse
NFP & broker time

Set the NFP window and whether to close positions or cancel pending orders. NFP can block new entries. The terminal calendar applies outside testing when enabled. Tester time conversion uses the winter/summer GMT offsets; match them to your broker.

NFP & broker time
Source input keyInitial value
NFP_FILTERDisplay text
EnableNFP_Filtertrue
UseMQL5Calendartrue
AutoGMTtrue
GMT_OFFSET_Winter (AutoGMT=false or backtesting)Broker_GMT_OFFSET_Winter2
MT_OFFSET_Summer (AutoGMT=false or backtesting)Broker_GMT_OFFSET_Summer3
NFP_CloseOpenTradestrue
NFP_ClosePendingOrderstrue
NFP_MinutesBefore100
NFP_MinutesAfter60
Interest-rate controls

Choose position closing and pending-order cancellation around scheduled interest-rate events. The filter defaults off, with a 100-minute before / 60-minute after window. These actions do not independently block new entries.

Interest-rate controls
Source input keyInitial value
IR_FILTERDisplay text
EnableIR_Filterfalse
IR_CloseOpenTradestrue
IR_ClosePendingOrderstrue
IR_MinutesBefore100
IR_MinutesAfter60
CPI controls

Choose position closing and pending-order cancellation around scheduled CPI events. The filter defaults off, with a 100-minute before / 60-minute after window. These actions do not independently block new entries.

CPI controls
Source input keyInitial value
CPI_FILTERDisplay text
EnableCPI_Filterfalse
CPI_CloseOpenTradestrue
CPI_ClosePendingOrderstrue
CPI_MinutesBefore100
CPI_MinutesAfter60
Strategy distances

These inputs add offsets to entry, stop-loss, take-profit, trailing and break-even distances. They use strategy distance units, not a cash profit or loss amount.

Strategy distances
Source input keyInitial value
propfirmsettingsDisplay text
AdjustEntry0.0
AdjustSL0.0
AdjustTP0.0
AdjustTrailSL0.0
AdjustTrailTP0.0
AdjustBreakEven0.0
Position sizing & loss limits

Risk: 0 = fixed, 3 = per strategy, 1234 = total allocation. MaxAllowedDD sizes risk; it is not a forced-close threshold. PropFirmMaxDailyDD controls the daily-loss stop; 0 disables it. ManualBalance 0 uses the account basis. OnlyUp retains the highest sizing basis.

Position sizing & loss limits
Source input keyInitial value
LotSizeSettingsDisplay text
manually set balance to use (if > 0)ManualBalance0.0
Lotsize calculation methodRiskMax Allowed Total Drawdown (1234)LOTS_TOTAL_DRAWDOWN
StartLots0.01
Max Allowed TOTAL DrawdownMaxAllowedDD30.0
Weighted LotsizeUseWeightedLotstrue
Max Risk Per StratMaxRiskPerStrategy_1.0
Set Max DAILY Drawdown (Prop Firms)PropFirmMaxDailyDD0.0
OnlyUptrue
Reset Highest Balance for OnlyUpResetHighestBalancefalse
CheckMargintrue
Use Equity Instead of BalanceUseEquityfalse
Manual strategies

RunStrat1–9 apply with TradeFrequency = 6. Do not combine manual selection with total weighted-risk mode. Separator and warning strings are display text, not trading controls.

Manual strategies
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

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.

Support: while the product is actively maintained

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

Future profits are not guaranteed. You should be comfortable using MQL5 and MT5; difficulties caused by a lack of the required knowledge are outside bug-fix support.

FAQ

Frequently asked questions

Designed for users with programming skills and trading experience who can read code, compile MQL5 and test strategies independently.

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

    Receive

    Source files by email within 6 hours of confirmed payment

Start with a small, free example

Free downloads. Real source files.

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.

Checkout

The Gold Reaper MT5

Version 5.1 · Personal-use licence

Order total
US$599

Email delivery within 6 hours

Screenshot · The Gold Reaper MT5

Screenshot — The Gold Reaper MT5Enlarge image ↗

Cart

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

Your cart is empty

Choose a source project to get started.

Continue shopping