
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. News filtering is inactive in the tester. Reinitialisation resets loss counters and cooldowns; the bundled holiday calendar covers 2025–2027.
Built for MetaTrader 5. A complete source project, clear inputs and practical documentation give you control over your next build.
Trading setup
Customise a gold scalper with two trading modes, configurable stop profiles, trailing exits and position sizing.
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 TradingSessionOpen(){ ENUM_SYMBOL_TRADE_MODE mode=(ENUM_SYMBOL_TRADE_MODE)SymbolInfoInteger(_Symbol,SYMBOL_TRADE_MODE); if(mode==SYMBOL_TRADE_MODE_DISABLED || mode==SYMBOL_TRADE_MODE_CLOSEONLY) return false; MqlDateTime clock;TimeToStruct(TimeCurrent(),clock); if(clock.day_of_week==0 || clock.day_of_week==6) return false; if(clock.day_of_week==1 && clock.hour==0) return false; if(clock.day_of_week==5 && clock.hour>=22) return false; datetime from=0,to=0,now=TimeCurrent(),midnight=now-now%86400; if(SymbolInfoSessionTrade(_Symbol,(ENUM_DAY_OF_WEEK)clock.day_of_week,0,from,to) && to>0) if(now>=midnight+to || now<midnight+from) return false; if(isTester) return true; if(!TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) || !MQLInfoInteger(MQL_TRADE_ALLOWED) || !AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)) return false; double bid=SymbolInfoDouble(_Symbol,SYMBOL_BID),ask=SymbolInfoDouble(_Symbol,SYMBOL_ASK); return bid>0 && ask>0 && bid<=ask;}bool IsHoliday(){ if(!UseHolidayFilter) return false; MqlDateTime t;TimeToStruct(TimeCurrent(),t); if(t.mon==1 && t.day<=2) return true; if(t.mon==6 && (t.day==19 || t.day==20)) return true; if(t.mon==7 && t.day>=3 && t.day<=5) return true; if(t.mon==12 && ((t.day>=24 && t.day<=26) || t.day==31)) return true; int date=t.year*10000+t.mon*100+t.day; const int holidays[]={20260119,20270118,20260216,20270215,20250418,20260403,20270326,20250526,20260525,20270531,20250901,20260907,20270906,20251127,20251128,20261126,20261127,20271125,20271126}; for(int i=0;i<ArraySize(holidays);i++) if(date==holidays[i]) return true; return false;}// Signal filtersenum MQLumeSignalDirection{ MQLUME_SIGNAL_SELL=-1, MQLUME_SIGNAL_NONE=0, MQLUME_SIGNAL_BUY=1};struct MQLumeSignalConfig{ ENUM_TIMEFRAMES signal_timeframe; int swing_radius; int swing_lookback; double minimum_entry_distance; double min_candle_range_points; double min_body_ratio; double max_tail_ratio; double volume_ratio; bool require_trend;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 3.30 · Personal-use licenceParameter handbook with initial values, sizing formulas and usage notes.
MT5 input preset. Review the settings before use.
A concise welcome, installation and compilation guide, with licence terms and support details.
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.
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 v3.30 · 28
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 |
|---|---|
InpMagic | 31250001 |
Order label (outgoing requests use @MQLume)TradeComment | "@MQLume" |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
BrokerType | 0MQLUME_DEFAULT_BROKER |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
EAMode | 1MQLUME_MODE_1 |
Mode 1 SL profileMode1Stop | 0MQLUME_LONG_STOP |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
UseFixedLot | false |
FixedLot | 0.01 |
RiskPercent | 3.0 |
UseDD_Protection | false |
MaxConsecLosses | 4 |
DD_LotMultiplier | 0.5 |
MaxDailyDD_Pct | 0.0 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
ShowPanel | true |
PanelX | 15 |
PanelY | 15 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
ShowPnLLabels | true |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Enable prop firm minimum hold timeUsePropFirmDelay | false |
Minimum seconds before trailing activatesPropFirmDelaySec | 30 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Stop Loss in points (0 = EA default)InpSL_Points | 0 |
Take Profit in points (0 = EA default)InpTP_Points | 0 |
Trailing: start after X points in profit (0 = default)InpTSL_Start | 0 |
Trailing: minimum step in points (0 = default)InpTSL_Step | 0 |
Trailing: distance from price in points (0 = default)InpTSL_Distance | 0 |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Pause around high-impact (red) newsUseNewsFilter | false |
Minutes before newsNewsStopBeforeMin | 30 |
Minutes after newsNewsStopAfterMin | 30 |
Currencies to watch (comma-sep, empty = all)NewsCurrencies | "USD" |
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Pause trading on major market holidaysUseHolidayFilter | 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
Nine gold breakout strategies combine pending entries with position protection and portfolio controls.


EA only · EX5
XAUUSD · Stop entries and flexible sizing

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