
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
Editable English MQ5, matching EX5 and installation/parameter guides. The file list below shows the exact included resources.
Built for MetaTrader 5. A complete source project, clear inputs and practical documentation give you control over your next build.
Trading setup
Five gold profiles with pending entries, adjustable sizing and managed exits.
Read the supplied parameter guide for units and interactions before changing these initial values.
Explore 50 lines of the project's MQL5 source. Scroll inside the editor to discover more.
void AddVisualIndicators(){ if(!testing || !MQLInfoInteger(MQL_VISUAL_MODE)) return; visual_indicators[0]=iMA(_Symbol,_Period,20,0,MODE_EMA,PRICE_CLOSE); visual_indicators[1]=iMA(_Symbol,_Period,50,0,MODE_EMA,PRICE_CLOSE); visual_indicators[2]=iBands(_Symbol,_Period,20,0,2.0,PRICE_CLOSE); visual_indicators[3]=iATR(_Symbol,_Period,14); visual_indicators[4]=iRSI(_Symbol,_Period,14,PRICE_CLOSE); for(int i=0;i<5;i++) if(visual_indicators[i]!=INVALID_HANDLE) ChartIndicatorAdd(0,i<3?0:(int)ChartGetInteger(0,CHART_WINDOWS_TOTAL),visual_indicators[i]); ChartSetInteger(0,CHART_SHOW_TRADE_LEVELS,false); ChartRedraw();}int OnInit(){ testing=(bool)MQLInfoInteger(MQL_TESTER); gold=IsGold(); ConfigureProfiles(); if(InpHedgehogMagicNumber<1 || InpHedgehogMagicNumber>2147483600 || InpHedgehogLotMode<LOT_FIXED || InpHedgehogLotMode>LOT_RISK_PER_BALANCE || InpHedgehogFixedLot<=0 || InpHedgehogRiskPercent<=0 || InpHedgehogRiskPercent>100 || InpHedgehogBalanceReference<=0) { Print("Hedgehog: invalid magic number or money management settings"); return HEDGEHOG_INIT_REJECTED; } if(InpExitProfile==EXIT_USER && (InpUserStopLossPoints<=0 || InpUserTakeProfitPoints<=0 || InpUserTrailStartPoints<=0 || InpUserTrailDistancePoints<=0 || InpUserTrailStepPoints<=0)) { Print("Hedgehog: user exit distances must be positive"); return HEDGEHOG_INIT_REJECTED; } if(InpFridayPendingHour<0 || InpFridayPendingHour>23 || InpNewsMinutesBefore<0 || InpNewsMinutesAfter<0) { Print("Hedgehog: invalid Friday hour or news window"); return HEDGEHOG_INIT_REJECTED; } trade.SetTypeFilling((SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE)&SYMBOL_FILLING_FOK)!=0? ORDER_FILLING_FOK:ORDER_FILLING_IOC); LoadNewsCache(); if(!testing) { RefreshNews(); EventSetTimer(60); } cached_stop_floor=StopFloor(); RestorePending(); AddVisualIndicators(); RestoreExecution(); dashboard_visible=InpHedgehogDashboardVisible; dashboard_equity_peak=AccountInfoDouble(ACCOUNT_EQUITY); initialized=true; UpdateDashboard(true); return INIT_SUCCEEDED;}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 licenceThe 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.
Read the supplied parameter guide for units and interactions before changing these initial values.
Read the supplied parameter guide for units and interactions before changing these initial values.
A concise welcome, installation and compilation guide, with licence terms and support details.
Testing
Five gold profiles with pending entries, adjustable sizing and managed exits.
Version v1.0 · 30
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.
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Trading ON / OFFInpHedgehogTradingEnabled | true |
EA Magic Number (internal order management)InpHedgehogMagicNumber | 44556677 |
Money Management: Fixed / Risk % / Balance LotInpHedgehogLotMode | Fixed LotLOT_FIXED |
Fixed Lot / Base Lot for Balance Mode (default 0.01)InpHedgehogFixedLot | 0.01 |
Risk (%) per new trade (only in Risk Percent mode)InpHedgehogRiskPercent | 0.25 |
Account Balance represented by Base LotInpHedgehogBalanceReference | 1000.0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Exit Settings (default Standard)InpExitProfile | StandardEXIT_STANDARD |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
User Settings | Stop Loss (Gold Points; 200 = 2.00 USD)InpUserStopLossPoints | 200.0 |
User Settings | Take Profit (Gold Points; 1500 = 15.00 USD)InpUserTakeProfitPoints | 1500.0 |
User Settings | Trailing Start (Gold Points)InpUserTrailStartPoints | 80.0 |
User Settings | Trailing Distance (Gold Points)InpUserTrailDistancePoints | 80.0 |
User Settings | Trailing Step (Gold Points; 0.4 = 0.004 USD)InpUserTrailStepPoints | 0.4 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
HIGH impact USD calendar: ON (default) / OFFInpUseNewsFilter | true |
Block entries 30 minutes BEFORE newsInpNewsMinutesBefore | 30 |
Block entries 30 minutes AFTER newsInpNewsMinutesAfter | 30 |
News Week Risk: OFF / -25% / -50%InpNewsWeekRiskMode | OFFNEWS_WEEK_OFF |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
FOMC / Federal ReserveInpNewsFOMC | true |
CPI / Core CPIInpNewsCPI | true |
NFP / employment releasesInpNewsNFPJobs | true |
PCE / Core PCEInpNewsPCE | true |
PPI / Core PPIInpNewsPPI | false |
US GDPInpNewsGDP | false |
US retail salesInpNewsRetailSales | false |
ISM releasesInpNewsISM | false |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
WebRequest backup ON / OFFInpUseNewsBackup | true |
Add this URL under MT5 Expert Advisors / Allow WebRequestInpWebRequestURL | Display text |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Delete our pending orders starting Friday 22:00 BROKER TIMEInpFridayPendingClose | true |
Friday BROKER SERVER HOUR (default 22)InpFridayPendingHour | 22 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Dashboard ON/OFF (default OFF)InpHedgehogDashboardVisible | false |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Order comment display (requests use @MQLume)InpOrderComment | Display text |
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.
Missing 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.

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

RSI entries with two ATR filters, configurable sessions and optional grid management.
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
Nine gold breakout strategies combine pending entries with position protection and portfolio controls.

Source code · MQ5 + EX5
XAUUSD · Balance-based sizing, configurable signals and position management.


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