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

Your next gold-coding project starts free. Get the complete editable source, compiled EA and parameter guide, then explore gold breakout trading on your own terms.

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

Symbol
XAUUSD / Gold
Chart timeframe
Any chart timeframe
Account
Hedging required for portfolio mode
VPS
Recommended for continuous operation

Inside the source

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

MQL5 / .mq5
Smart Gold Hunter MT5 5.0[MQLume].mq5v5.0
double HunterNormalizePrice(double price){   double tick=SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_SIZE);   if(tick<=0.0) tick=_Point;   if(tick>0.0) price=MathRound(price/tick)*tick;   return HunterDecimalRound(price,_Digits);}double HunterSpreadPips() // Read Ask before Bid.{   double ask=SymbolInfoDouble(_Symbol,SYMBOL_ASK);   double bid=SymbolInfoDouble(_Symbol,SYMBOL_BID);   return (ask-bid)/HunterPip();}// Fixed volume is raised to the minimum before rounding down to the lot step.double HunterClampVolume(double volume){   const double minimum=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN);   const double maximum=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX);   volume=MathMax(minimum,volume);   volume=MathMin(maximum,volume);   double step=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP);   if(step<=0.0) step=0.01;   volume=HunterDecimalRound(MathFloor(volume/step)*step,2);   return volume<minimum?0.0:volume;}// Risk volume must not be increased to the broker minimum.double HunterRiskVolume(double volume){   const double minimum=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN);   const double maximum=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX);   double step=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP);   if(volume<=0.0 || minimum<=0.0 || volume+1.0e-12<minimum) return 0.0;   if(step<=0.0) step=0.01;   volume=HunterDecimalRound(MathFloor(MathMin(volume,maximum)/step)*step,2);   return volume<minimum?0.0:volume;}// Use 98% of free margin, with a calculation fallback and bounded lot reductions.double HunterFitMargin(const ENUM_ORDER_TYPE type,double volume,const double price,string &reason){   volume=HunterClampVolume(volume);   if(volume<=0.0)   {      reason="Volume below minimum";      return 0.0;   }   double available=AccountInfoDouble(ACCOUNT_MARGIN_FREE);

Overview

An EA you can make your own.

Claim Smart Gold Hunter free from MQLume: add it to your cart, enter your email and download your package on the website. Explore individual trading profiles or combine selected profiles in portfolio mode, with configurable sizing and directional risk controls. Study the code, adapt a rule and test your own ideas. No extra DLL or custom indicator download is needed.

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

No external MQH or DLL required

Project specifications

Platform
MetaTrader 5 / MQL5; not compatible with MT4
Version
5.0
Dependencies
One self-contained MQ5 file. Open it in MetaEditor and compile.
Inputs
87 inputs covering profiles, sizing, time controls and portfolio settings
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.0 · Personal-use licence
  • MQ5

    Smart Gold Hunter MT5 5.0[MQLume].mq5

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

    Included
  • EX5

    Smart Gold Hunter MT5 5.0[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

    PARAMETERS.pdf covers all 87 inputs, their defaults, units and interactions. The free package includes MQ5, EX5, README.txt, PARAMETERS.pdf and RELEASE_NOTES.txt.

    Included
  • TXT

    RELEASE_NOTES.txt

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

    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.0 · 87

Parameter guide

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

Initial values shown below come from the included source. Review the parameter guide before changing settings.

Choose a trading profile

Positive RR is selected by default. Select another built-in profile or the custom profile before changing profile-specific settings.

Choose a trading profile
Source input keyInitial value
Strategy Profileinp_ModeSGH_POSITIVE_RR
Entry and stop options

Configure optional entry randomization, break-even and execution-based stop placement. Some options do not apply to every profile; check PARAMETERS.pdf.

Entry and stop options
Source input keyInitial value
Entry Randomizerinp_UltimateEntryRandomizerfalse
Break Even (Not Applicable to Positive RR / Swinger / Prop Firminp_UltimateBreakEvenfalse
False Initial SL On Pending Orderinp_UltimateFalseInitialSLfalse
False Initial SL Distance (points)inp_UltimateFalseSLPoints1000.0
Recalculate SL From Executioninp_UltimateSLFromExecutionfalse
Position sizing

Choose fixed lots, risk-percentage sizing or balance-per-0.01-lot sizing. The delivery defaults to fixed 0.01 lots. Spread protection is separately configurable.

Position sizing
Source input keyInitial value
Lot Size Methodinp_LotMethodSGH_FIXED_LOTS
Fixed Lotinp_Lots0.01
Risk Percentinp_RiskPercent1.0
Balance Per 0.01 Lotinp_BalancePer001Lot100.0
Max Spread (points, 0=off)inp_MaxSpread0
High Spread Protectioninp_UseHighSpreadDeletePendingfalse
Custom profile

Adjust the custom profile’s take profit, stop loss, trailing thresholds, pause and entry-distance adjustment. These controls are not general overrides for all built-in profiles.

Custom profile
Source input keyInitial value
Custom Take Profit (points, 0=off)inp_TP250.0
Custom Stop Loss (points, 0=off)inp_SL500.0
Custom Trailing Start (points, 0=off)inp_TrailStart100.0
Custom Trailing Stop (points)inp_TrailStop50.0
Custom Pause Between Positions (sec)inp_Pause300
Entry distance adjustment (+/- points)inp_CustomPointsAway0.0
Account and session controls

Configure daily targets and limits, news buffers, daily close/reopen times and Friday closing. Review the broker’s server time and the guide before changing these controls.

Account and session controls
Source input keyInitial value
Enable Daily Profit/Loss Protectionsinp_UsePropFirmModetrue
Stop After Daily Profit Targetinp_UseDailyProfitTargetfalse
Daily Profit Targetinp_DailyProfitTargetUSD200.0
Stop After Daily Loss Limitinp_UseDailyLossLimitfalse
Daily Loss Limitinp_DailyLossLimitUSD100.0
Close All If Daily DD Is Hitinp_UseEquityProtectionfalse
Daily Drawdown %inp_DailyEquityProtectionPercent3.0
Daily Drawdown Based Oninp_DailyDDReferenceSGH_PREV_DAY_BALANCE
Use All High-Impact Newsinp_UseHighImpactNewsFilterfalse
Use Selected High-Impact News Onlyinp_UseMajorNewsFiltertrue
News Currencies: USD,EUR,GBPinp_NewsCurrenciesUSD
Selected High-Impact Newsinp_MajorNewsKeywordsNFP,CPI,FOMC,Fed Chair,Core PCE
Minutes Before Newsinp_NewsMinutesBefore5
Minutes After Normal Newsinp_NewsMinutesAfter5
Full Fed Chair Speech Protectioninp_FullFedChairSpeechProtectiontrue
Fed Chair Protection Minutesinp_FedChairSpeechMinutes60
Use manual daily close/reopen timeinp_UseManualDailyCloseTimetrue
Daily close hourinp_DailyCloseHour21
Daily close minuteinp_DailyCloseMinute15
Daily reopen hourinp_DailyReopenHour1
Daily reopen minuteinp_DailyReopenMinute15
Delete pending orders at daily closeinp_DailyCloseDeletePendingstrue
Close positions at daily closeinp_DailyCloseClosePositionstrue
Friday Close Protectioninp_UseFridayCloseProtectiontrue
Friday close timeinp_UseManualFridayCloseTimetrue
Friday close hourinp_FridayCloseHour15
Friday close minuteinp_FridayCloseMinute25
Delete Pending Orders on Fridayinp_FridayCloseDeletePendingstrue
Close Open Positions on Fridayinp_FridayCloseClosePositionstrue
Time and panel settings

Choose automatic or manual broker-time offset, optional early-close detection and whether to show the information panel.

Time and panel settings
Source input keyInitial value
Auto Detect Broker GMT Offsetinp_UseAutoBrokerGMTOffsetfalse
Manual Broker GMT Offsetinp_ManualBrokerGMTOffset2
Broker Early/Holiday Close Detectioninp_UseBrokerEarlyCloseDetectionfalse
Minutes Before Broker Session Closeinp_EarlyCloseProtectionMinutes30
Show Info Panel On Chartinp_ShowPaneltrue
Order identification

Assign an appropriate magic number and trade comment so you can identify this installation’s orders.

Order identification
Source input keyInitial value
Magic Numberinp_MagicNo888777
Trade Comment (single-profile mode)inp_TradeComment@fundedtoday SGH 5 MQLume
Portfolio mode

Portfolio mode is off by default. Enable the profiles you want to combine, choose each profile’s sizing method and set the maximum combined directional risk. A hedging account is required.

Portfolio mode
Source input keyInitial value
Multi-Profile Mode (OFF = single profile)inp_UseMultiProfileModefalse
Max Combined Risk Per Buy/Sell Side % (0=off)inp_PortfolioMaxDirectionalRiskPercent3.0
Recalculate SL From Executioninp_PortfolioSLFromExecutionfalse
False Initial SLinp_PortfolioFalseInitialSLfalse
False SL Distance (points)inp_PortfolioFalseSLPoints1000.0
Enable Strikerinp_PortfolioUseStrikerfalse
Striker Lot Methodinp_PortfolioStrikerLotMethodSGH_PORTFOLIO_FIXED_LOTS
Striker Risk % Per Tradeinp_PortfolioStrikerRiskPercent1.0
Striker Fixed Lotinp_PortfolioStrikerFixedLot0.01
Enable Ultimate Scalperinp_PortfolioUseUltimateScalperfalse
Ultimate Scalper Lot Methodinp_PortfolioUltimateLotMethodSGH_PORTFOLIO_FIXED_LOTS
Ultimate Scalper Risk % Per Tradeinp_PortfolioUltimateRiskPercent1.0
Ultimate Scalper Fixed Lotinp_PortfolioUltimateFixedLot0.01
Enable Classic Scalperinp_PortfolioUseScalperfalse
Classic Scalper Lot Methodinp_PortfolioScalperLotMethodSGH_PORTFOLIO_FIXED_LOTS
Classic Scalper Risk % Per Tradeinp_PortfolioScalperRiskPercent1.0
Classic Scalper Fixed Lotinp_PortfolioScalperFixedLot0.01
Enable Positive RRinp_PortfolioUsePRRScalpingfalse
Positive RR Lot Methodinp_PortfolioPRRLotMethodSGH_PORTFOLIO_FIXED_LOTS
Positive RR Risk % Per Tradeinp_PortfolioPRRRiskPercent1.0
Positive RR Fixed Lotinp_PortfolioPRRFixedLot0.01
Enable Swingerinp_PortfolioUseSwingerfalse
Swinger Lot Methodinp_PortfolioSwingerLotMethodSGH_PORTFOLIO_FIXED_LOTS
Swinger Risk % Per Tradeinp_PortfolioSwingerRiskPercent1.0
Swinger Fixed Lotinp_PortfolioSwingerFixedLot0.01
Enable Prop Firm Scalperinp_PortfolioUsePropScalperfalse
Prop Firm Scalper Lot Methodinp_PortfolioPropLotMethodSGH_PORTFOLIO_FIXED_LOTS
Prop Firm Scalper Risk % Per Tradeinp_PortfolioPropRiskPercent1.0
Prop Firm Scalper Fixed Lotinp_PortfolioPropFixedLot0.01
Enable Custom Profileinp_PortfolioUseCustomfalse
Custom Lot Methodinp_PortfolioCustomLotMethodSGH_PORTFOLIO_FIXED_LOTS
Custom Risk % Per Tradeinp_PortfolioCustomRiskPercent1.0
Custom Fixed Lotinp_PortfolioCustomFixedLot0.01

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

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

Enter your email, confirm the licence and download your free EA source package. No payment needed.

Delivery & support

  1. 1

    Add to cart

    Choose your free EA source packages.

  2. 2

    Check your order

    Review the products and US$0 total.

  3. 3

    Enter your email

    Confirm the licence and complete your free order.

  4. 4

    Download

    One ZIP for all selected free products, with individual downloads available.

Explore free EA source code

Free downloads. Real source files.

Smart Gold Hunter MT5

Free EA source code · v5.0

US$349Original EA market priceFREE

MoonDog EA MT5

Free EA source code · v4.21

US$299Original EA market priceFREE

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

Smart Gold Hunter MT5

Version 5.0 · Personal-use licence

Order total
US$0

Instant download after checkout

Screenshot · Smart Gold Hunter MT5

Screenshot — Smart Gold Hunter MT5
Enlarge 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