
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
Multi-symbol entries, a local learning model, recovery management and an interactive AI assistant.
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.
int OnInit(){ ZeroMemory(shutdown_state); shutdown_state.file_handle = INVALID_HANDLE; const int shared_init = PrepareApplicationSharedFiles(); if (shared_init != INIT_SUCCEEDED) return shared_init; EventSetTimer(2); ClearApplicationStartupGlobals(); application_entry.application_runtime = GetPointer(application_runtime); application_tick.application_runtime = GetPointer(application_runtime); application_tick.application_session = GetPointer(application_session); if (_Period != PERIOD_M15) ChartSetSymbolPeriod(0, NULL, PERIOD_M15); application_runtime.book.pending_cleanup.Run("", InpMagic, application_runtime.book.protection, application_runtime.pending); application_runtime.Configure(); RefreshStrategyClock(application_runtime.ticks.settings.tester_gmt_offset, application_runtime.ticks.state.clock); application_runtime.management.admission.server_utc_hours = application_runtime.ticks.state.clock.server_utc_hours; application_runtime.management.admission.daylight_adjustment_hours = application_runtime.ticks.state.clock.daylight_adjustment_hours; application_runtime.management.basket_diagnostics.suppressed = 1; application_runtime.management.basket_diagnostics.last_notice = TimeCurrent(); BindApplicationSharedNetwork(); SharedFleetRuntime startup_fleet(shared_services); SharedMaintenanceRuntime startup_network(startup_fleet, sltype); startup_network.Maintain(false, interaction_state); PublishApplicationPositions(); EventSetTimer(10); ClearApplicationMasterStartupRequests(); ReportApplicationStartupConnection(); SymbolInfoTick(_Symbol, application_runtime.ticks.state.chart_tick); InitializeExecutionAccount(_Symbol, InpMagic, application_runtime.book); if (application_runtime.symbols.settings.filter_news) application_tick.RefreshEconomicNews(); application_runtime.InitializeTradingSymbols(); InitializeApplicationStartupApiCache(shared_services.settings.cache_directory, application_runtime.book.symbols, (ENUM_TIMEFRAMES)GPTCHECK, shared_services.availability.master, shared_services.availability.master_only); application_runtime.WarmSymbolIndicators(); // Resizing symbol-dependent authority caches after primary initialization // preserves the route and publication state established earlier. ArrayResize(shared_services.availability.payloads, ArraySize(application_runtime.book.symbols)); ArrayResize(shared_services.availability.received_at, ArraySize(application_runtime.book.symbols)); ArrayCopy(panel_settings.pairs, application_runtime.advice_symbols); RefreshApplicationMainPanel(); if (shareSL) RestoreInitialSharedStops(InpMagic, application_runtime.book.protection, application_runtime.management.initial_stops);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 8.4 · Personal-use licenceRead 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.
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
Multi-symbol entries, a local learning model, recovery management and an interactive AI assistant.
Version v8.4 · 173
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 |
|---|---|
_read_ | Display text |
Install | Display text |
Algo | "Allow Algo Trading Must Be Enabled" |
TimeFrame | Display text |
LINK | "https://nfs.faireconomy.media/" |
Link3 | Display text |
Link4 | Display text |
Link5 | Display text |
Link7 | Display text |
Link8 | Display text |
Link9 | Display text |
Link11 | Display text |
LinkT | Display text |
LinkF | Display text |
VPS | Display text |
AlgoTrade | Display text |
Tele | Display text |
Prop | Display text |
GLOBAL_API_KEY_INPUTS | Display text |
_Keys_ | Display text |
OpenAI / ChatGPT API keyapiKey | "" |
Anthropic / Claude API keyapiKey2 | "" |
Google / Gemini API keyapiKey3 | "" |
Mistral API keyapiKey5 | "" |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
xAI / Grok API keyapiKey6 | "" |
DeepSeek API keyapiKey7 | "" |
Moonshot API keyapiKey9 | "" |
AI news summaryIncludeNewsSummary | true |
Medium-impact summary filterFilterMediumImpact | false |
_0_ | Display text |
_Sai_ | Display text |
AI response languageInpLanguage | 0 |
Assistant symbolsInpSentimentPairs | "EURUSD,XAUUSD" |
Assistant volume modeauto_lot_type | 0 |
Assistant volume / riskauto_lot_value | 0.01 |
Assistant comment / legacy tagassistantcomment | "@MQLume" |
_tel_ | Display text |
Telegram bot tokenInpTelegramToken | "" |
Telegram chat IDInpTelegramChatId | "0" |
Telegram topic IDInpTelegramTopicId | 0 |
_space_8 | Display text |
_EA_Ai | Display text |
Operating roleagencytype | 1 |
Autonomous trading symbolspairlist | "AUDCAD,AUDNZD,NZDCAD" |
Maximum active symbolsmaxSymbols | 2 |
_GuardRails_ | Display text |
_GuardRailsHeader_ | Display text |
_GuardRailsDesc_ | Display text |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Disable entry guard railsDisableGuardRails | false |
Trading web searchweb | true |
Chained web searchInpChainedWebSearch | false |
Trading code executionInpCodeExecutionEA | false |
_API_ | Display text |
_APIselect_ | Display text |
Primary AI providerPrimaryAPI | API_CHATGPT |
Secondary AI providerSecondaryAPI | API_GROK |
_space_ | Display text |
_Model_ | Display text |
ChatGPT modelInpGPTModel | GPT_5_6_luna_low |
Claude modelInpClaudeModel | CLAUDE_OPUS_5_ADAPTIVE_LOW |
Gemini modelInpGeminiModel | GEMINI_3_7_FLASH_LOW |
Moonshot modelInpMoonshotModel | KIMI_K3_LOW |
Mistral modelInpMistralModel | MISTRAL_LARGE_3 |
Grok modelInpXModel | GROK_4_6_LOW |
DeepSeek modelInpDeepSeekModel | DEEPSEEK_V4_FLASH_THINK_LOW |
Trading analysis intervalGPTCHECK | PERIOD_H1 |
AI candle contextBarConfiguration | 0 |
_APM_ | Display text |
_APMHeader_ | Display text |
AI position managementAIMOD | false |
Allow AI position closeAIMOD_AllowClose | false |
APM provider overrideapmSelection | 0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
AI protection fieldsaiModType | Both |
APM analysis intervalGPTCHECK2 | PERIOD_M30 |
APM web searchAPMweb | true |
_XG_ | Display text |
_XGHeader_ | Display text |
Local model filterInp_InpNN | true |
Periodic model retrainingTrainingFrequency | 4 |
Allow weak model signalsEnableWeakSignals | true |
Training compatibility settingNumTrainingRuns | 3 |
_S_ | Display text |
SESS | Display text |
Allow Sydney open sessionAllowSydneyOpen | false |
Allow Asian / Tokyo sessionAllowAsianTokyo | false |
Allow London open sessionAllowLondonOpen | false |
Allow London sessionAllowLondon | false |
Allow London / New York overlap sessionAllowLondonNYOverlap | false |
Allow New York sessionAllowNewYork | false |
_1_ | Display text |
SLTP | "__________ Primary Strategy Settings __________" |
Primary entry modeInp_entrytype | 1 |
Daily trade limitMaxTradesPerDay | 0 |
Save trading API contextapisave | false |
Primary take-profit distancetakeprofit | 10.0 |
Use AI take profit_aitp | false |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Primary stop-loss distancespl | 500.0 |
Use AI stop loss_aisl | false |
Strategy combinationsltype | 1 |
Trailing activation distanceinpSLTrail | 0.0 |
Trailing stop distanceinpSLTrailD | 0.0 |
Maximum spread distanceInp_SpreadMarket | 0.0 |
Directional currency exposuremaxcurr | 2 |
Volatility ceilingInp_atrperc | 95.0 |
Allow Monday entriesMondayday | true |
Allow Friday entriesFridayday | true |
_7_ | Display text |
SecondaryStrategy | Display text |
Fibonacci recovery spacingfibbo | true |
Secondary management modesymmetryType | 0 |
Adaptive recovery volumeInpUseVolAdaptive | false |
Recovery drawdown ceilingg_maxRecoveryDD | 100.0 |
Maximum campaigns per symbolmaxrec | 9 |
Shared initial stopshareSL | false |
RecoveryLotMultipliers | Display text |
First-stage compatibility multiplierlot1 | 1.0 |
Recovery stage 2 multiplierlot2 | 1.0 |
Recovery stage 3 multiplierlot3 | 2.0 |
Recovery stage 4 multiplierlot4 | 2.0 |
Recovery stage 5 multiplierlot5 | 2.0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Recovery stage 6 multiplierlot6 | 1.6 |
Recovery stage 7 multiplierlot7 | 1.6 |
Recovery stage 8 multiplierlot8 | 1.6 |
Recovery stage 9 multiplierlot9 | 1.6 |
_2_ | Display text |
MoneyManagment | Display text |
EA volume modelotType | 0 |
Fixed order volumelotSize | 0.01 |
Capital per 0.01 lotlotrisk | 500 |
Balance risk percentagecustomlot | 0.2 |
Initial funds for lot sizingfundstart | 10000.0 |
Split entry volumeInpSplitLots | false |
_3_ | Display text |
LOSS_CUT | Display text |
LOSS_CUT_EXP | Display text |
Master loss-cut modelossCutType | lcnone |
Master loss-cut thresholdlcvalue | 100.0 |
Master-stop initial depositInitDeposit | 10000.0 |
Minimum margin levelmarginper | 150.0 |
_4_ | Display text |
Gain | "__________ Gain Staging __________" |
Gain compatibility settingACPERC | 0.0 |
Monthly profit thresholdinpMontlyProfitTrailStart | 0.0 |
Weekly profit thresholdinpWeeklyProfitTrailStart | 0.0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Daily rollover profit thresholdinpDailyRolloverProfitTrailStart | 0.0 |
_5_ | Display text |
Times | "__________ Trading Times [GMT] __________" |
Start allowed-entry hour (0-23)StartHour | 22 |
Start allowed-entry minute (0-59)StartMinute | 15 |
End allowed-entry hour (0-23)EndHour | 21 |
End allowed-entry minute (0-59)EndMinute | 55 |
Start blocked-entry hour (0-23)StartHour2 | 21 |
Start blocked-entry minute (0-59)StartMinute2 | 45 |
End blocked-entry hour (0-23)EndHour2 | 22 |
End blocked-entry minute (0-59)EndMinute2 | 59 |
_6_ | Display text |
ORDER | Display text |
EA comment / legacy tagorderComment | "@MQLume" |
Strategy Magic numberInpMagic | 2025 |
Shared fleet IDInpSynaFleetID | 1 |
Intelligence networkInpSynaIntelligenceNetwork | SYNA_NETWORK_NORMAL |
AIKON network IDInpSynaAikonNetworkID | 0 |
_News_ | Display text |
NEWS | "__________ News Filter __________" |
Economic news filterInp_NewsFilter | true |
News currenciescurrencies | "USD,CAD,AUD,NZD,JPY" |
Minutes before newscloseBefore | 120 |
Minutes after newsstartAfter | 60 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Close positions for newsclosefornews | false |
High-impact newshighImpact | true |
Medium-impact newsmedImpact | false |
Low-impact newslowImpact | false |
Bank holidaysbankHoliday | 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
Chart signals with adaptive or manual target levels and configurable alerts.


EA only · EX5
XAUUSD · Stop entries and flexible sizing

Free EA · MQ5 + EX5
Trend-based entries with optional grid additions, side controls and virtual 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