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.
Describe your idea
Ask for a session filter, clearer logging or a different risk rule.
Review the change
Read the proposed code, check the logic and compile it in MetaEditor.
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.
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.
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- MQ5Included
The Gold Reaper MT5 5.1[MQLume].mq5
Complete, editable single-file source. Read the logic, customise it and compile your own EA.
- EX5Included
The Gold Reaper MT5 5.1[MQLume].ex5
The compiled EA accompanying the source. Recompile after editing the MQ5.
- TXTIncluded
README.txt
A concise welcome, installation and compilation guide, with licence terms and support details.
- PDFIncluded
PARAMETERS.pdf
All 79 input entries explained, including defaults, units, menu choices and practical notes.
- TXTIncluded
RELEASE_NOTES.txt
Build details, recorded test conditions, changes and known limits for the supplied package.
- SETIncluded
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.
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.
| Source input key | Initial value |
|---|---|
lijntje | Display text |
UseVariableValues | true |
AdjustLotsizeToVariableValues | true |
ShowInfoPanel | true |
update infopanel during testingUpdateInfoTesting | false |
Adjustment for Infopanel sizeInfoPanelSizeAdjust | 1.0 |
Force Font Size (0=disabled)SetFontSize | 0 |
BacktestSpeed_string | Display text |
Backtest SpeedBacktestSpeed | normal (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.
| Source input key | Initial value |
|---|---|
spreadfilter | Display text |
Allow Buy TradesAllowBuyTrades | true |
Allow Sell TradesAllowSellTrades | true |
TradeFrequency | Auto (based on balance and risk) (5)FREQUENCY_AUTOMATIC |
Max Allowed SpreadMaxSpread | 500.0 |
UseHL_TrailingSL | true |
Friday stop hour (brokertime; close all trades+pending)FridayStopHour | 25 |
delete pending ordersFridayClosePending | true |
close open tradesFridayCloseOpen | true |
setSL_TP_After_Entry | false |
Use Virtual ExpirationVirtual_expiration | true |
Randomization (entries and exit) in pipsRandomization | 0.0 |
Fake Breakout FilterFakeOutFilter | Medium (2)FAKEOUT_MEDIUM |
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 | 8000 |
Comment for tradesST1_Comment | The Gold Reaper MQLume |
RemoveCommentSuffix | false |
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.
| Source input key | Initial value |
|---|---|
NFP_FILTER | Display text |
EnableNFP_Filter | true |
UseMQL5Calendar | true |
AutoGMT | true |
GMT_OFFSET_Winter (AutoGMT=false or backtesting)Broker_GMT_OFFSET_Winter | 2 |
MT_OFFSET_Summer (AutoGMT=false or backtesting)Broker_GMT_OFFSET_Summer | 3 |
NFP_CloseOpenTrades | true |
NFP_ClosePendingOrders | true |
NFP_MinutesBefore | 100 |
NFP_MinutesAfter | 60 |
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.
| Source input key | Initial value |
|---|---|
IR_FILTER | Display text |
EnableIR_Filter | false |
IR_CloseOpenTrades | true |
IR_ClosePendingOrders | true |
IR_MinutesBefore | 100 |
IR_MinutesAfter | 60 |
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.
| Source input key | Initial value |
|---|---|
CPI_FILTER | Display text |
EnableCPI_Filter | false |
CPI_CloseOpenTrades | true |
CPI_ClosePendingOrders | true |
CPI_MinutesBefore | 100 |
CPI_MinutesAfter | 60 |
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.
| Source input key | Initial value |
|---|---|
propfirmsettings | Display text |
AdjustEntry | 0.0 |
AdjustSL | 0.0 |
AdjustTP | 0.0 |
AdjustTrailSL | 0.0 |
AdjustTrailTP | 0.0 |
AdjustBreakEven | 0.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.
| Source input key | Initial value |
|---|---|
LotSizeSettings | Display text |
manually set balance to use (if > 0)ManualBalance | 0.0 |
Lotsize calculation methodRisk | Max Allowed Total Drawdown (1234)LOTS_TOTAL_DRAWDOWN |
StartLots | 0.01 |
Max Allowed TOTAL DrawdownMaxAllowedDD | 30.0 |
Weighted LotsizeUseWeightedLots | true |
Max Risk Per StratMaxRiskPerStrategy_ | 1.0 |
Set Max DAILY Drawdown (Prop Firms)PropFirmMaxDailyDD | 0.0 |
OnlyUp | true |
Reset Highest Balance for OnlyUpResetHighestBalance | false |
CheckMargin | true |
Use Equity Instead of BalanceUseEquity | false |
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.
| Source input key | Initial value |
|---|---|
ManualStratSelect | 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
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 maintainedDelivery & 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 centreWhat 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
Review
Read the files, environment and terms
- 2
Confirm
Check the source version and purchase terms
- 3
Pay
Payment is checked with the provider or on the selected blockchain
- 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.