
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
Gold Fmv combines gold signal entries with moving-average direction and slope logic, protective stops, position exits and an on-chart information panel. Use your broker’s XAUUSD symbol on H1. Signals use internal M15 data, so load sufficient history before starting.
Position management combines ATR protection, moving-average exits and Soft Rescue for adverse moves. With ATR protection enabled, the stop distance is the smaller of 26,000 points and 6.5 ATR. The opposite-signal compatibility input is retained, but switching it off does not disable opposite-signal exits in this version.
Choose a fixed base lot or balance-percentage sizing. Recovery sizing is then applied and can raise volume to 20 times the base. The risk input does not cap total loss. Daily cash targets are normalized to 0.01 lot, while panel profit is raw account currency. Configure the daily trail, entry blocking and trading-time mode through the 25 inputs.
The source edition supplies a single editable English MQ5, compiled EX5, README and a four-page PARAMETERS.pdf. No external model, DLL, indicator, WebRequest service or preset is required. Copy the package into MQL5/Experts, read the guide and test before ordinary-chart use. Use a unique magic terminal-wide, because some saved daily state is not isolated by account or symbol. Keep existing global variables when continuing an instance. A custom comment suffix accepts up to 14 printable ASCII characters.
Explore the parametersTrading setup
Gold Fmv combines gold signal entries with moving-average direction and slope logic, protective stops, position exits and an on-chart information panel. Use your broker’s XAUUSD symbol on H1. Signals use internal M15 data, so load sufficient history before starting.
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.
input group "=====[ General settings ]======"input long MagicN0=73036;input string inp_order_comment=""; // Custom comment suffix (up to 14 ASCII characters)input bool Inp_Close_OppositeSignal_All_TF=true;input group "=====[ One trade per day ]======"input bool EnterNextTradeAfterTP=true;input group "=====[ Lot size ]======"input int lot_mode=0;input double lot_fixed=0.01;input double lot_risk_percent=1.0;input double lot_risk_sl_usd=10.0;input group "=====[ Profit target - TRAIL STOP ]======"input int target_trail_mode=1;input double target_trail_usd=12.0;input double target_trail_percent=83.5;input double target_trail_lock_usd=3.91;input double target_trail_step_usd=3.35;input double target_trail_max_usd=57.0;input bool target_trail_block_entries=true;input group "=====[ Trading time - applies to all days ]======"input bool inp_trade_full_time=true;input int InpTimeMode=1;input group "=====[ Global switches for all timeframes ]======"input bool inp_use_atr_sltp_all_tf=true;input bool inp_sl_ma_direction_all_tf=true;input bool inp_sl_close_ma_new_all_tf=true;input bool inp_ex_closema2_v3_all_tf=true;input group "=====[ GOLD FMV - CloseMA2 SOFT RESCUE ]======"input bool inp_ex_soft_rescue_tf0=true;input bool inp_ex_sr_snapback_start=true;input group "=====[ Timeframe 1 ]======"input double inp_tp_point_tf0=20000.0;input group "=====[ Panel ]======"input bool inp_show_panel=true;// Comments// The fixed strategy label fits the server's 31-character comment budget.string CustomCommentTail() { return inp_order_comment == "GOLD FMV" ? "" : inp_order_comment;}bool CommentTailAllowed(string tail) { if (StringLen(tail) > 14) return false; for (int i = 0; i < StringLen(tail); i++) { ushort c = StringGetCharacter(tail, i); if (c < 32 || c > 126) return false; } return StringFind(tail, "_Ind") < 0 && StringFind(tail, "TargetWin_") < 0 && StringFind(tail, "TargetLoss_") < 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 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.
A concise welcome, installation and compilation guide, with licence terms and support details.
Testing
Position management combines ATR protection, moving-average exits and Soft Rescue for adverse moves. With ATR protection enabled, the stop distance is the smaller of 26,000 points and 6.5 ATR. The opposite-signal compatibility input is retained, but switching it off does not disable opposite-signal exits in this version.
Version v1.0 · 25
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 |
|---|---|
MagicN0MagicN0 | 73036 |
Custom comment suffix (up to 14 ASCII characters)inp_order_comment | "" |
Inp_Close_OppositeSignal_All_TFInp_Close_OppositeSignal_All_TF | true |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
EnterNextTradeAfterTPEnterNextTradeAfterTP | true |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
lot_modelot_mode | 0 |
lot_fixedlot_fixed | 0.01 |
lot_risk_percentlot_risk_percent | 1.0 |
lot_risk_sl_usdlot_risk_sl_usd | 10.0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
target_trail_modetarget_trail_mode | 1 |
target_trail_usdtarget_trail_usd | 12.0 |
target_trail_percenttarget_trail_percent | 83.5 |
target_trail_lock_usdtarget_trail_lock_usd | 3.91 |
target_trail_step_usdtarget_trail_step_usd | 3.35 |
target_trail_max_usdtarget_trail_max_usd | 57.0 |
target_trail_block_entriestarget_trail_block_entries | true |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
inp_trade_full_timeinp_trade_full_time | true |
InpTimeModeInpTimeMode | 1 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
inp_use_atr_sltp_all_tfinp_use_atr_sltp_all_tf | true |
inp_sl_ma_direction_all_tfinp_sl_ma_direction_all_tf | true |
inp_sl_close_ma_new_all_tfinp_sl_close_ma_new_all_tf | true |
inp_ex_closema2_v3_all_tfinp_ex_closema2_v3_all_tf | true |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
inp_ex_soft_rescue_tf0inp_ex_soft_rescue_tf0 | true |
inp_ex_sr_snapback_startinp_ex_sr_snapback_start | true |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
inp_tp_point_tf0inp_tp_point_tf0 | 20000.0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
inp_show_panelinp_show_panel | 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.
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
XAUUSD · Session entries and risk-based sizing

Source code · MQ5 + EX5
Eight gold breakout profiles with pending entries, volatility-based distances, selectable strategies and configurable 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