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.

Overview

An EA you can make your own.

The source edition includes editable MQ5, compiled EX5, README and PARAMETERS.pdf. Read the rules, adjust your own copy and recompile after changes. A multi-strategy gold portfolio with an optimized six-strategy mode, a custom mode, cross-asset filters and configurable risk controls.

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

No extra MQH or DLL downloads

Project specifications

Platform
MetaTrader 5 / MQL5; not compatible with MT4
Version
3.22
Dependencies
MT5 standard libraries; no separate DLL or custom MQH download. Keep these supplied folders beside the MQ5 when compiling: Models/
Inputs
116 input entries
Build & testing
Compile in MT5 MetaEditor. See README.txt for installation and PARAMETERS.pdf for parameter guidance.

Trading setup

Stated specifications

A multi-strategy gold portfolio with an optimized six-strategy mode, a custom mode, cross-asset filters and configurable risk controls.

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

Symbol
XAUUSD / GOLD
Chart timeframe
Internal strategy timeframes
Account
Hedging

Inside the source

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

MQL5 / .mq5
Karat Killer MT5 3.22[MQLume].mq5v3.22
double QuantizeRiskVolume(const double fixed_lots, const double account_balance, const double risk_percent,                          const double stop_distance, const double point, const double tick_value,                          const double tick_size, const double minimum, const double maximum,                          const double step){   double volume;   if (fixed_lots > 0.0)      volume = MathFloor(fixed_lots / step) * step;   else   {      if (stop_distance < point)         return 0.0;      if (tick_value <= 0.0 || tick_size <= 0.0)         return 0.0;      double distance_ticks = stop_distance / tick_size;      double risk_cash = account_balance * risk_percent / 100.0;      double cash_per_lot = tick_value * distance_ticks;      volume = MathFloor((risk_cash / cash_per_lot) / step) * step;   }   return MathMax(minimum, MathMin(maximum, volume));}void EnforceStopDistances(const bool buy, const double quote, const int digits, const int stops_points,                          const double point, double &stop, double &target){   stop = NormalizeDouble(stop, digits);   target = NormalizeDouble(target, digits);   const int minimum_points = (stops_points > 0 ? stops_points : 10);   const double minimum_distance = minimum_points * point;   if (buy)   {      if (quote - stop < minimum_distance)         stop = quote - minimum_distance;      if (target - quote < minimum_distance)         target = quote + minimum_distance;   }   else   {      if (stop - quote < minimum_distance)         stop = quote + minimum_distance;      if (quote - target < minimum_distance)         target = quote - minimum_distance;   }   stop = NormalizeDouble(stop, digits);   target = NormalizeDouble(target, digits);}struct StrategyState{   ulong ticket;

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 3.22 · Personal-use licence
  • MQ5

    Karat Killer MT5 3.22[MQLume].mq5

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

    Included
  • EX5

    Karat Killer MT5 3.22[MQLume].ex5

    The compiled EA accompanying the source. Recompile after editing the MQ5.

    Included
  • ONNX

    Models/KaratKiller322.onnx

    Bundled compile-time resource; preserve its relative path.

    Included
  • PDF

    PARAMETERS.pdf

    Parameter handbook with initial values, sizing formulas and usage notes.

    Included
  • TXT

    README.txt

    A concise welcome, installation and compilation guide, with licence terms and support details.

    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 v3.22 · 116

Parameter guide

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.

How to read EA parameters
Settings 1 · General

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

Settings 1 · General
Source input keyInitial value
Expert Advisor NameInpEANameDisplay text
Info & ManualInpEALinkDisplay text
Settings 2 · RISK MANAGEMENT

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

Settings 2 · RISK MANAGEMENT
Source input keyInitial value
Risk Per Trade (% of Balance)RiskPct1.0
Fixed Lot Size (0 = use Risk %)FixedLots0.0
Max Total Open PositionsMaxOpenTotal12
Max Concurrent Ratchet LONG (S8, S9, S12)MaxOpenRatchet1
Max Concurrent Short Cluster (S1, S2, S4, S5)MaxOpenShortCluster2
Max Concurrent Long Trend (S6, S11, S12)MaxOpenLongTrend2
Max Allowed Spread (points)MaxSpreadPoints35
Max Drawdown % (0 = disabled)MaxDrawdownPct0.0
Fast Trailing (M1). Off = strategy TF onlyFastTrailingtrue
Settings 3 · TRADE SETTINGS

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

Settings 3 · TRADE SETTINGS
Source input keyInitial value
Trade Comment (fixed @MQLume with strategy suffix)InpEACommentDisplay text
Magic Number (base)InpMagicNumber202501
Settings 4 · TRADING SESSION

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

Settings 4 · TRADING SESSION
Source input keyInitial value
Session filter on/off (false=off, matches backtest)EnableSessionFilterfalse
Session Start Hour (server time EET)SessionStartHour5
Session End Hour (server time EET)SessionEndHour20
Close ALL trades on Friday at FridayCloseHourCloseFridayEODfalse
Friday close hour (server time EET, 0-23)FridayCloseHour22
Settings 5 · NEWS FILTER

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

Settings 5 · NEWS FILTER
Source input keyInitial value
Block entries near USD high-impact newsEnableNewsFiltertrue
Block window: minutes BEFORE eventNewsMinsBefore120
Block window: minutes AFTER eventNewsMinsAfter60
Strategies affected by near-news filter (comma-separated, e.g.InpNF_Strats"2,3,6"
Block ALL strategies on NFP day (first Friday of month)BlockNFPDaytrue
Settings 6 · CROSS-ASSET SYMBOLS

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

Settings 6 · CROSS-ASSET SYMBOLS
Source input keyInitial value
Silver Symbol (XAGUSD, XAGUSD.a, etc.)InpSymbolSilver"XAGUSD"
S&P 500 Symbol (US500, US500.a, SP500, etc.)InpSymbolSP500"US500"
Settings 7 · PORTFOLIO MODE

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

Settings 7 · PORTFOLIO MODE
Source input keyInitial value
Portfolio ModePortfolioModeOptimized PortfolioOptimizedPortfolio
Settings 8 · STRATEGY SELECTION (Custom mode only)

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

Settings 8 · STRATEGY SELECTION (Custom mode only)
Source input keyInitial value
S1 Session Pivot SHORT (M30)EnableS1true
S2 Trend Breakdown SHORT (M30)EnableS2true
S3 Momentum Reversal SHORT (M30)EnableS3true
S4 Pivot Breakout SHORT (M30)EnableS4true
S5 London Breakdown SHORT (M30)EnableS5true
S6 Asian Breakout LONG (H1)EnableS6true
S7 Pivot Rally LONG (M30)EnableS7true
S8 Momentum Surge LONG (H1)EnableS8true
S9 Trend Follow LONG (H1)EnableS9true
S10 Volatility Breakout LONG (H1)EnableS10true
S11 Cloud Breakout LONG (H1)EnableS11true
S12 Trend Continuation LONG (H1)EnableS12true
Settings 9 · S1: Session Pivot SHORT (M30) - Chandelier

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

Settings 9 · S1: Session Pivot SHORT (M30) - Chandelier
Source input keyInitial value
S1 Distance ModeInpMode_S1ATR MultiplesAtrDistance
S1 Stop LossInpSL_S11.2
S1 Take ProfitInpTP_S13.0
S1 Break-Even Trigger (0=off)InpBE_S10.8
S1 Trail Stop DistanceInpTrailStop_S10.5
S1 Cooldown Bars (0=off)InpCooldown_S16
Settings 10 · S2: Trend Breakdown SHORT (M30) - Ratchet

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

Settings 10 · S2: Trend Breakdown SHORT (M30) - Ratchet
Source input keyInitial value
S2 Distance ModeInpMode_S2PricePercentDistance
S2 Stop LossInpSL_S20.55
S2 Take ProfitInpTP_S23.45
S2 Break-Even Trigger (0=off)InpBE_S20.6
S2 Ratchet StepInpRatchetStep_S20.55
S2 Ratchet MoveInpRatchetMove_S20.7
S2 Cooldown Bars (0=off)InpCooldown_S21
Settings 11 · S3: Momentum Reversal SHORT (M30) - Ratchet

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

Settings 11 · S3: Momentum Reversal SHORT (M30) - Ratchet
Source input keyInitial value
S3 Distance ModeInpMode_S3ATR MultiplesAtrDistance
S3 Stop LossInpSL_S32.1
S3 Take ProfitInpTP_S32.95
S3 Break-Even Trigger (0=off)InpBE_S31.8
S3 Ratchet StepInpRatchetStep_S31.25
S3 Ratchet MoveInpRatchetMove_S30.85
S3 Cooldown Bars (0=off)InpCooldown_S32
Settings 12 · S4: Pivot Breakout SHORT (M30) - Ratchet

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

Settings 12 · S4: Pivot Breakout SHORT (M30) - Ratchet
Source input keyInitial value
S4 Distance ModeInpMode_S4ATR MultiplesAtrDistance
S4 Stop LossInpSL_S41.7
S4 Take ProfitInpTP_S46.5
S4 Break-Even Trigger (0=off)InpBE_S40.7
S4 Ratchet StepInpRatchetStep_S40.4
S4 Ratchet MoveInpRatchetMove_S40.9
S4 Cooldown Bars (0=off)InpCooldown_S41
Settings 13 · S5: London Breakdown SHORT (M30) - Chandelier

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

Settings 13 · S5: London Breakdown SHORT (M30) - Chandelier
Source input keyInitial value
S5 Distance ModeInpMode_S5ATR MultiplesAtrDistance
S5 Stop LossInpSL_S51.1
S5 Take ProfitInpTP_S55.8
S5 Break-Even Trigger (0=off)InpBE_S50.8
S5 Trail Stop DistanceInpTrailStop_S50.5
S5 Cooldown Bars (0=off)InpCooldown_S53
Settings 14 · S6: Asian Breakout LONG (H1) - Time Decay

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

Settings 14 · S6: Asian Breakout LONG (H1) - Time Decay
Source input keyInitial value
S6 Distance ModeInpMode_S6PricePercentDistance
S6 Stop LossInpSL_S61.85
S6 Take ProfitInpTP_S64.3
S6 Break-Even Trigger (0=off)InpBE_S61.0
S6 Time Decay Bars (time_decay exit only)InpDecayBars_S67
S6 Cooldown Bars (0=off)InpCooldown_S65
Settings 15 · S7: Pivot Rally LONG (M30) - Chandelier

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

Settings 15 · S7: Pivot Rally LONG (M30) - Chandelier
Source input keyInitial value
S7 Distance ModeInpMode_S7PricePercentDistance
S7 Stop LossInpSL_S71.35
S7 Take ProfitInpTP_S72.3
S7 Break-Even Trigger (0=off)InpBE_S71.4
S7 Trail Stop DistanceInpTrailStop_S70.95
S7 Cooldown Bars (0=off)InpCooldown_S75
Settings 16 · S8: Momentum Surge LONG (H1) - Chandelier

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

Settings 16 · S8: Momentum Surge LONG (H1) - Chandelier
Source input keyInitial value
S8 Distance ModeInpMode_S8PricePercentDistance
S8 Stop LossInpSL_S80.85
S8 Take ProfitInpTP_S82.1
S8 Break-Even Trigger (0=off)InpBE_S81.6
S8 Trail Stop DistanceInpTrailStop_S81.6
S8 Cooldown Bars (0=off)InpCooldown_S81
Settings 17 · S9: Trend Follow LONG (H1) - Ratchet

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

Settings 17 · S9: Trend Follow LONG (H1) - Ratchet
Source input keyInitial value
S9 Distance ModeInpMode_S9PricePercentDistance
S9 Stop LossInpSL_S91.0
S9 Take ProfitInpTP_S92.1
S9 Break-Even Trigger (0=off)InpBE_S91.0
S9 Ratchet StepInpRatchetStep_S91.0
S9 Ratchet MoveInpRatchetMove_S91.35
S9 Cooldown Bars (0=off)InpCooldown_S95
Settings 18 · S10: Volatility Breakout LONG (H1) - Chandelier

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

Settings 18 · S10: Volatility Breakout LONG (H1) - Chandelier
Source input keyInitial value
S10 Distance ModeInpMode_S10PricePercentDistance
S10 Stop LossInpSL_S101.5
S10 Take ProfitInpTP_S104.75
S10 Break-Even Trigger (0=off)InpBE_S101.4
S10 Trail Stop DistanceInpTrailStop_S102.35
S10 Cooldown Bars (0=off)InpCooldown_S101
Settings 19 · S11: Cloud Breakout LONG (H1) - Ratchet

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

Settings 19 · S11: Cloud Breakout LONG (H1) - Ratchet
Source input keyInitial value
S11 Distance ModeInpMode_S11PricePercentDistance
S11 Stop LossInpSL_S111.75
S11 Take ProfitInpTP_S114.8
S11 Break-Even Trigger (0=off)InpBE_S111.7
S11 Ratchet StepInpRatchetStep_S111.4
S11 Ratchet MoveInpRatchetMove_S110.45
S11 Cooldown Bars (0=off)InpCooldown_S114
Settings 20 · S12: Trend Continuation LONG (H1) - Time Decay

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

Settings 20 · S12: Trend Continuation LONG (H1) - Time Decay
Source input keyInitial value
S12 Distance ModeInpMode_S12PricePercentDistance
S12 Stop LossInpSL_S121.9
S12 Take ProfitInpTP_S122.15
S12 Break-Even Trigger (0=off)InpBE_S121.9
S12 Time Decay Bars (time_decay exit only)InpDecayBars_S125
S12 Cooldown Bars (0=off)InpCooldown_S121
Settings 21 · DISPLAY

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

Settings 21 · DISPLAY
Source input keyInitial value
Show On-Chart DashboardShowDashboardtrue

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

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.

Delivery & support

  1. 1

    Review

    Read the files, environment and terms

  2. 2

    Confirm

    Check the source version and purchase terms

  3. 3

    Pay

    Payment is checked with the provider or on the selected blockchain

  4. 4

    Automatic delivery

    Fast, automatic delivery after payment confirmation. No waiting for manual dispatch.

MQLume Bespoke

Built around your ambition.

Explore bespoke services →

Have something more specific in mind?

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 downloads. Real source files.

FREE

Lizard [MQLume]

MQL5 / MT5Version v2.1

Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.

US$99.00FREE
FREE

Scraper Gold [MQLume]

MQL5 / MT5Version v3.7

Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.

US$95.00FREE

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.

Reviews & questions

Loading…

MQLume

More to explore. A community to share it with.

Stay close to MQLume, wherever you like to learn.

YouTube

See our EAs in action. Explore backtests, walkthroughs and practical guides.

Watch on YouTube

Telegram

Meet other EA users, share ideas and keep up with what’s new.

Join the community Follow official updates

Checkout

Karat Killer [MQLume]

Version 3.22 · Personal-use licence

Order total
US$299

Account downloads · email delivery

Screenshot · Karat Killer [MQLume]

Screenshot — Karat Killer [MQLume]
Enlarge image ↗

Cart

One personal-use licence per project. Each project can be added once.

Your cart is waiting for its first passenger.

Choose an EA or source edition to get started.

Continue shopping