
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. An MT5 chart indicator with adjustable inputs. It does not place or manage trades. Read the product conditions and supplied guides.
Built for MetaTrader 5. A complete source project, clear inputs and practical documentation give you control over your next build.
Trading setup
A multi-timeframe chart indicator with trend colours, signal arrows and analytical price levels.
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.
else if(key=="TP1"){target1Visible=!target1Visible;SaveSetting("EZ_TP1",target1Visible);zonesDirty=true;} else if(key=="TP2"){target2Visible=!target2Visible;SaveSetting("EZ_TP2",target2Visible);zonesDirty=true;} else if(key=="TP3"){target3Visible=!target3Visible;SaveSetting("EZ_TP3",target3Visible);zonesDirty=true;} else if(key=="ATR" || key=="MODE") { if(key=="ATR"){higherTimeframeAtr=!higherTimeframeAtr;SaveSetting("EZ_ATR_HTF",higherTimeframeAtr);} else {retestEntry=!retestEntry;SaveSetting("EZ_MODE_RT",retestEntry);} RecalculateLevels(); zonesDirty=true;EventSetTimer(1); } else if(key=="MTF_BUTTON"){mtfVisible=!mtfVisible;SaveSetting("MTF_ON",mtfVisible);DeleteObjects("MTF_");} RefreshDisplay(true);}void OnDeinit(const int reason){ EventKillTimer();ReleaseTrendHandles();ReleaseDashboard(); if(TC_HideOriginalBars)ChartSetInteger(0,CHART_SHOW,true); DeleteObjects("");ChartRedraw();}int OnInit(){ SetIndexBuffer(0,buyOpen,INDICATOR_DATA); SetIndexBuffer(1,buyHigh,INDICATOR_DATA); SetIndexBuffer(2,buyLow,INDICATOR_DATA); SetIndexBuffer(3,buyClose,INDICATOR_DATA); SetIndexBuffer(4,sellOpen,INDICATOR_DATA); SetIndexBuffer(5,sellHigh,INDICATOR_DATA); SetIndexBuffer(6,sellLow,INDICATOR_DATA); SetIndexBuffer(7,sellClose,INDICATOR_DATA); SetIndexBuffer(8,weakOpen,INDICATOR_DATA); SetIndexBuffer(9,weakHigh,INDICATOR_DATA); SetIndexBuffer(10,weakLow,INDICATOR_DATA); SetIndexBuffer(11,weakClose,INDICATOR_DATA); SetIndexBuffer(12,changeOpen,INDICATOR_DATA); SetIndexBuffer(13,changeHigh,INDICATOR_DATA); SetIndexBuffer(14,changeLow,INDICATOR_DATA); SetIndexBuffer(15,changeClose,INDICATOR_DATA); for(int plot=0;plot<4;plot++) PlotIndexSetDouble(plot,PLOT_EMPTY_VALUE,0.0); IndicatorSetInteger(INDICATOR_DIGITS,_Digits); IndicatorSetString(INDICATOR_SHORTNAME,"Trend Sniper X 3.3 [MQLume]"); RestoreSettings();InitializeNews();PruneFrozenAtr(); if(!CreateTrendHandles())return INIT_FAILED; initializationTime=TimeCurrent(); if(TC_HideOriginalBars)ChartSetInteger(0,CHART_SHOW,false); ApplyPaintVisibility();InitializeDashboard();DrawMainPanel();RefreshMomentum();RefreshDashboard(true); if(NEWS_Enable && newsVisible){WriteNewsRequest();newsHeartbeat=NewsServiceAlive();ReadNewsResponse();} DrawNews();EventSetTimer(1);ChartRedraw(); 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 3.3 · Personal-use licenceRead 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.
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
An MT5 chart indicator with adjustable inputs. It does not place or manage trades. Read the product conditions and supplied guides.
Version v3.3 · 127
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.
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 |
|---|---|
SuperTrend ATR periodTC_ST_ATR_Period | 10 |
SuperTrend multiplierTC_ST_Multiplier | 3.0 |
HTF EMA periodTC_HTF_EMA_Period | 50 |
Enable EMA filterTC_UseEMAFilter | true |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Enable entry zonesEZ_Enable | false |
ATR SL multiplierEZ_ATR_SL_Mult | 1.5 |
TP1 Risk:RewardEZ_TP1_RR | 1.5 |
TP2 Risk:RewardEZ_TP2_RR | 3.0 |
TP3 Risk:RewardEZ_TP3_RR | 4.0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Freeze levels at signal time (recommended ON)EZ_FreezeLevels | true |
Keep frozen data for N daysEZ_FreezeKeepDays | 30 |
Publish last signal levels for Assistant EAEZ_PublishToEA | true |
Log freeze/lock eventsEZ_FreezeLog | false |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Enable Stochastic confirmationStoch_Enable | true |
%K periodStoch_K_Period | 14 |
%D periodStoch_D_Period | 3 |
SlowingStoch_Slowing | 3 |
Overbought levelStoch_Overbought | 80 |
Oversold levelStoch_Oversold | 20 |
Midline levelStoch_Mid | 50 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Enable ADX trend strengthADX_Enable | true |
ADX periodADX_Period | 14 |
Strong trend levelADX_StrongLvl | 20 |
Weak/flat levelADX_WeakLvl | 15 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Block signals in sideways marketsSQ_UseEfficiency | false |
Sideways check: bars measuredSQ_EffBars | 15 |
Sideways check: minimum efficiency (0.0 - 1.0)SQ_EffMinRatio | 0.25 |
Require trend strength for a signalSQ_UseAdxGate | false |
Minimum trend strengthSQ_AdxMinLevel | 25.0 |
Minimum bars between signals (0 = off)SQ_MinBarsBetween | 0 |
Signal sequenceSQ_Sequence | SEQUENCE_ALTERNATING |
Re-entry: new high/low beyond the last signal (x ATR)SQ_ReEntryATR | 1.0 |
Re-entry: minimum bars after the last signalSQ_ReEntryMinBars | 10 |
Blocked signal may still fire within N bars (0 = cancel it)SQ_PendingBars | 10 |
Mark blocked signals on the chartSQ_MarkFiltered | true |
Write blocked signals to the Experts tabSQ_LogFiltered | false |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Show the multi-timeframe panelMTF_Enable | true |
Which side of the chartMTF_Side | PANEL_RIGHT |
Distance from that side (px)MTF_X | 20 |
Top or bottom of the chartMTF_VPos | PANEL_BOTTOM |
Distance from that edge (px)MTF_Y | 20 |
Cell width (px)MTF_CellW | 58 |
Cell height (px)MTF_CellH | 22 |
Font sizeMTF_FontSize | 8 |
Refresh interval (seconds)MTF_RefreshSec | 5 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
M1MTF_M1 | false |
M5MTF_M5 | true |
M15MTF_M15 | true |
M30MTF_M30 | true |
H1MTF_H1 | true |
H4MTF_H4 | true |
D1MTF_D1 | true |
W1MTF_W1 | false |
MN1MTF_MN1 | false |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
EMA stack (fast / slow / trend)MTF_UseEMA | true |
RSI above or below its thresholdsMTF_UseRSI | true |
MACD against its signal lineMTF_UseMACD | true |
Price against the fast EMAMTF_UsePrice | true |
Fast EMA periodMTF_FastEMA | 21 |
Slow EMA periodMTF_SlowEMA | 50 |
Trend EMA periodMTF_TrendEMA | 200 |
EMA conditions needed for a bull vote (1-3)MTF_EMAMinBull | 2 |
RSI periodMTF_RSIPeriod | 14 |
RSI above this votes bullMTF_RSIBull | 55.0 |
RSI below this votes bearMTF_RSIBear | 45.0 |
MACD fast periodMTF_MACDFast | 12 |
MACD slow periodMTF_MACDSlow | 26 |
MACD signal periodMTF_MACDSign | 9 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Show the strength rowMTF_ShowStrength | true |
Show the BUY / SELL / WAIT rowMTF_ShowSignal | true |
Agreement needed for a CONFLUENT call (%)MTF_ConfPct | 60 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Chart history barsTC_MaxBarsBack | 100000 |
HTF history barsTC_HTF_MaxBars | 50000 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Confirm bars countTC_MinBarsConfirm | 2 |
Show weak barsTC_ShowWeakBars | true |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Hide original barsTC_HideOriginalBars | true |
Main panel horizontal positionTC_Panel_X | 24 |
Show signal arrowsTC_ShowSignalMarks | true |
Arrow offset (pips)TC_ArrowOffsetPips | 4.0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Terminal popup alertTC_AlertOnChange | true |
Mobile push alertTC_PushOnChange | false |
Email alertTC_MailOnChange | false |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Print Entry Zone anchor debug logEZ_DebugLog | false |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Show Sydney sessionSESS_Show_Sydney | true |
Sydney session colorSESS_Clr_Sydney | C'48,220,140' |
Show Tokyo sessionSESS_Show_Tokyo | true |
Tokyo session colorSESS_Clr_Tokyo | C'64,176,255' |
Show London sessionSESS_Show_London | true |
London session colorSESS_Clr_London | C'255,196,48' |
Show New York sessionSESS_Show_NewYork | true |
New York session colorSESS_Clr_NewYork | C'255,90,90' |
Background opacity (0-255)SESS_Fill_Alpha | 18 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Sydney open hourSESS_Sydney_OpenH | 21 |
Sydney open minuteSESS_Sydney_OpenM | 0 |
Sydney close hourSESS_Sydney_CloseH | 6 |
Sydney close minuteSESS_Sydney_CloseM | 0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Tokyo open hourSESS_Tokyo_OpenH | 0 |
Tokyo open minuteSESS_Tokyo_OpenM | 0 |
Tokyo close hourSESS_Tokyo_CloseH | 9 |
Tokyo close minuteSESS_Tokyo_CloseM | 0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
London open hourSESS_London_OpenH | 7 |
London open minuteSESS_London_OpenM | 0 |
London close hourSESS_London_CloseH | 16 |
London close minuteSESS_London_CloseM | 0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
New York open hourSESS_NY_OpenH | 12 |
New York open minuteSESS_NY_OpenM | 0 |
New York close hourSESS_NY_CloseH | 21 |
New York close minuteSESS_NY_CloseM | 0 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Skip weekendsSESS_Skip_Weekends | true |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Entry line colorEZ_Clr_Entry | C'0,180,255' |
SL line colorEZ_Clr_SL | C'220,50,50' |
TP1 line colorEZ_Clr_TP1 | C'80,200,120' |
TP2 line colorEZ_Clr_TP2 | C'50,220,180' |
TP3 line colorEZ_Clr_TP3 | C'200,220,50' |
Zone width (bars)EZ_Zone_Width_Bars | 30 |
Show price labelsEZ_Show_Labels | true |
Show historical zonesEZ_Show_History | true |
Max history zonesEZ_Max_History | 15 |
Read the supplied parameter guide for units and interactions before changing these initial values.
| Source input key | Initial value |
|---|---|
Show the NEWS buttonNEWS_Enable | true |
News language (AUTO uses the terminal language)NEWS_Language | LANGUAGE_AUTO |
News from the last N daysNEWS_Days | 3 |
Posts per currencyNEWS_PerCurrency | 12 |
Refresh interval (minutes)NEWS_RefreshMin | 30 |
Posts needed for a BUY / SELL viewNEWS_MinPosts | 5 |
Lead needed for a BUY / SELL viewNEWS_MinDiff | 2 |
Distance from the right edge (px)NEWS_X | 12 |
Distance from the top edge (px)NEWS_Y | 10 |
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 · 2 embedded models and flexible sizing

Source code · MQ5 + EX5
Gold breakout presets with H2 pivots, adjustable position sizing and trailing protection.

EA only · EX5
Explore gold pattern entries, configurable sizing, stops and timed 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