
Gold
A focused improvement
For a specific change to an existing project.
Quoted per project
Discuss this tier · GoldWith 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
Read, customise and compile the included MQ5. The package also contains the compiled EX5, README and parameter handbook. Historical paths before 9 June 2026 (gold) and 17 March 2026 (euro) use the same day’s final close and fixed dated entries. Those results contain look-ahead information and cannot demonstrate live predictive performance. RiskLevel is a sizing tier, not a risk percentage. Preserve Images and Data when compiling.
Built for MetaTrader 5. A complete source project, clear inputs and practical documentation give you control over your next build.
Trading setup
Explore separate gold and euro strategy modes, balance-based sizing and configurable exits in an editable MT5 project.
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 CreateIndicators(){ cciFastHandle=iCCI(_Symbol,PERIOD_M15,settings.cciFast,PRICE_CLOSE); if(cciFastHandle==INVALID_HANDLE) return false; cciSlowHandle=iCCI(_Symbol,PERIOD_M15,settings.cciSlow,PRICE_CLOSE); if(cciSlowHandle==INVALID_HANDLE) return false; rsiHandle=iRSI(_Symbol,PERIOD_M15,settings.rsiPeriod,PRICE_CLOSE); if(rsiHandle==INVALID_HANDLE) return false; maFastHandle=iMA(_Symbol,PERIOD_M15,settings.maFast,0,MODE_SMMA,PRICE_MEDIAN); if(maFastHandle==INVALID_HANDLE) return false; maSlowHandle=iMA(_Symbol,PERIOD_M15,settings.maSlow,0,MODE_SMMA,PRICE_MEDIAN); if(maSlowHandle==INVALID_HANDLE) return false; ArraySetAsSeries(maFastValues,true); ArraySetAsSeries(maSlowValues,true); ArraySetAsSeries(rsiValues,true); ArraySetAsSeries(cciFastValues,true); ArraySetAsSeries(cciSlowValues,true); panelMaHandle=iMA(_Symbol,PERIOD_M15,50,0,MODE_EMA,PRICE_CLOSE); return panelMaHandle!=INVALID_HANDLE;}bool OwnedPositionSelected(){ return PositionGetString(POSITION_SYMBOL)==_Symbol && PositionGetInteger(POSITION_MAGIC)==MagicNumber;}int CountOwnedPositions(){ int count=0; for(int index=0;index<PositionsTotal();index++) if(PositionGetTicket(index)!=0 && OwnedPositionSelected()) count++; return count;}bool HasTradeToday(){ if(!PropProtection) return false; datetime day=iTime(_Symbol,PERIOD_D1,0); int count=0; for(int index=PositionsTotal()-1;index>=0;index--) if(PositionGetTicket(index)!=0 && PositionGetInteger(POSITION_MAGIC)==MagicNumber && (datetime)PositionGetInteger(POSITION_TIME)>=day) count++; if(HistorySelect(day,TimeCurrent())) for(int index=HistoryDealsTotal()-1;index>=0;index--) { ulong deal=HistoryDealGetTicket(index); if(deal==0 || HistoryDealGetInteger(deal,DEAL_MAGIC)!=MagicNumber) continue; ENUM_DEAL_TYPE type=(ENUM_DEAL_TYPE)HistoryDealGetInteger(deal,DEAL_TYPE); if((type==DEAL_TYPE_BUY || type==DEAL_TYPE_SELL) && (datetime)HistoryDealGetInteger(deal,DEAL_TIME)>=day) count++; } return count>0;}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 1.0 · Personal-use licenceBundled 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.
The 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.
Parameter handbook with initial values, sizing formulas and usage notes.
A concise welcome, installation and compilation guide, with licence terms and support details.
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 v1.0 · 37
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 |
|---|---|
Version | Display text |
Magic numberMagicNumber | 651 |
Order comment brandingOrderComment | "@MQLume" |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Calculate lots automaticallyAutomaticLots | true |
Manual lot sizeManualLots | 0.01 |
Risk level (0..5)RiskLevel | 1 |
Risk calibrationRiskCalibration | false |
Calibration valueCalibrationValue | 10.0 |
JPY account conversionYenAccount | false |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Take profit (points)GoldTakeProfit | 450 |
Stop loss (points)GoldStopLoss | 1700 |
Enable trailing stopGoldTrailing | true |
Trailing distance (points)GoldTrailStart | 115 |
Trailing step (points)GoldTrailStep | 35 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Take profit (points)EuroTakeProfit | 150 |
Stop loss (points)EuroStopLoss | 600 |
Enable trailing stopEuroTrailing | true |
Trailing distance (points)EuroTrailStart | 30 |
Trailing step (points)EuroTrailStep | 5 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Maximum spread (points)MaximumSpread | 400 |
Maximum slippage (points)MaximumSlippage | 100 |
Allow trading on FridayAllowFriday | true |
Hours filterRestrictHours | false |
Restricted period start hourBlockFromHour | 20 |
Restricted period end hourBlockToHour | 23 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Enable news filterNewsFilter | false |
Calendar feedNewsFeedUrl | "https://nfs.faireconomy.media" |
News impact levelNewsImpact | 0NEWS_HIGH |
Currency codesNewsCurrencies | "EUR,USD" |
Pause before news (minutes)NewsMinutesBefore | 45 |
Pause after news (minutes)NewsMinutesAfter | 45 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Enable drawdown protectionPropProtection | false |
Balance to equity drawdown (%)MaximumTotalDrawdown | 10.0 |
Daily balance to equity drawdown (%)MaximumDailyDrawdown | 5.0 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Strategy | 0STRATEGY_GOLD |
Random entry optionRandomEntry | false |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Show trading panelShowPanel | 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
XAUUSD · Balance-based sizing, configurable signals and position management.

Source code · MQ5 + EX5
XAUUSD · 2 embedded models and flexible sizing

EA only · EX5
A multi-strategy gold portfolio with an optimized six-strategy mode, a custom mode, cross-asset filters and configurable risk controls.

Free EA · MQ5 + EX5
Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.
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