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.

Trading setup

Stated specifications

Your ideas. Your gold strategy. Explore editable XAUUSD automation with flexible position sizing, trading sessions and trailing stops.

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

Symbol
XAUUSD
Chart timeframe
H1
Recommended deposit
US$1,000
Account
RAW / ECN with low spreads

Inside the source

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

MQL5 / .mq5
My AI Gold MT5 1.71[MQLume].mq5v1.71
bool CalculateOrderVolume(double &volume)  {   volume=Lot;   if(volume==0.0)     {      string currency=AccountInfoString(ACCOUNT_CURRENCY);      double reference=ResolveBalanceStep();      // Preserve this substring-search direction; it is not an equality test.      if(currency!="" && StringFind("JPY",currency)>=0) reference*=100.0;      volume=(AccountInfoDouble(ACCOUNT_BALANCE)/reference)*percent;      volume=MathMin(volume,SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX));      volume=MathMax(volume,SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN));     }   if(Recovery) ApplyRecoveryVolume(volume);   volume=NormalizeDouble(volume,2);   volume=MathMin(volume,SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX));   volume=MathMax(volume,SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN));   double step=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP);   if(step==0.0) return false;   volume=MathFloor(volume/step)*step;   double minimum=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN);   double maximum=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MAX);   if(volume<minimum || volume>maximum) return false;   step=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_STEP);   if(step==0.0 || MathAbs((int)MathRound(volume/step)*step-volume)>0.0000001) return false;   double limit=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_LIMIT),used=0.0;   for(int index=PositionsTotal()-1;index>=0;--index)      if(PositionGetTicket(index)!=0 && PositionGetString(POSITION_SYMBOL)==_Symbol)         used+=PositionGetDouble(POSITION_VOLUME);   if(limit>0.0 && volume>limit) volume=limit;   for(int index=OrdersTotal()-1;index>=0;--index)      if(OrderGetTicket(index)!=0 && OrderGetString(ORDER_SYMBOL)==_Symbol)         used+=OrderGetDouble(ORDER_VOLUME_CURRENT);   return limit<=0.0 || (limit-used)-volume>=0.0;  }// Check required margin at the current price for the order side.bool HasRequiredMargin(const ENUM_ORDER_TYPE side,const double volume)  {   MqlTick tick; if(!SymbolInfoTick(_Symbol,tick)) return false;   double free_margin=AccountInfoDouble(ACCOUNT_MARGIN_FREE),required=0.0;   double price=(side==ORDER_TYPE_SELL ? tick.bid : tick.ask);   if(!OrderCalcMargin(side,_Symbol,volume,price,required))     {      Print("Error in CheckMoneyForTrade code=",GetLastError()); return false;     }   if(required>free_margin)     {

Overview

An EA you can make your own.

Go beyond the settings panel. Read the entry and trade-management logic, adapt lot sizing and build your own filters—with your own code or an AI coding assistant. The package includes the MQ5 source, compiled EA, a parameter handbook and a documented test preset.

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

Compile. Backtest. Demo. Then decide.

After compiling the purchased source, check its behaviour in the Strategy Tester. Test it on a demo account before deciding whether to trade live. Passing tests does not guarantee live returns.

Project specifications

Platform
MetaTrader 5 / MQL5; not compatible with MT4
Version
1.71
Dependencies
Uses only the Trade library included with MT5. No custom MQH or external DLL to install.
Inputs
48 input entries · 40 trading/display controls
Build & testing
Compile in MT5 MetaEditor; consult RELEASE_NOTES.txt for the packaged build and testing record.

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

    My AI Gold MT5 1.71[MQLume].mq5

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

    Included
  • EX5

    My AI Gold MT5 1.71[MQLume].ex5

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

    Included
  • TXT

    README.txt

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

    Included
  • PDF

    PARAMETERS.pdf

    13-page guide to all 48 inputs, including defaults, lot-sizing formulas, units and examples.

    Included
  • TXT

    RELEASE_NOTES.txt

    Build details, recorded test conditions, changes and known limits for the supplied package.

    Included
  • SET

    Presets/VT_XAUUSD_ECN_M1.set

    Documented test configuration for XAUUSD-ECN / M1. Some values differ from the source defaults; review them before testing.

    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.

Compile your starting point

Open the source in MetaEditor, compile it and explore the default settings. The included guides explain installation and parameters so you can begin customising.

Test across market cycles

For a broader view of your settings, we recommend backtesting with the past 10 years of real tick data where available, followed by testing on a demo account.

Before live use

Backtest your chosen settings, then test on a demo account before deciding whether to trade live. Past results do not guarantee future performance.

Version v1.71 · 48

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.

Panel visibility

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

Panel visibility
Source input keyInitial value
ShowInfoPanelShowInfoPaneltrue
Weekly closing

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

Weekly closing
Source input keyInitial value
=============================================stt11Display text
Close At FridayFridaytrue
Close At Friday Hour(If 0 Close before Closing Market)FrHour0
Close At WednesdayWednesday2false
Close At Wednesday Hour(If 0 Close before Closing Market)FrHourW0
Close At Wednesday Minute(If 0 Close before Closing Market)FrMinuteW0
Entry & execution

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

Entry & execution
Source input keyInitial value
=============================================stt12Display text
EntryCountDual Entry / 1Dual_Entry
Delay DealDelayDfalse
Delay Deal,SecondsDelayDT10
AutoGMTAutoGMTtrue
Don't make volume less after lossRecoverytrue
Position sizing

Lot = 0 selects automatic sizing. The percent input is a lot multiplier, not a percentage loss limit. riskk selects the balance denominator; review the formulas in PARAMETERS.pdf.

Position sizing
Source input keyInitial value
=============================================sttDisplay text
Fix Lot(if 0 is Auto)Lot0.0
Lot Steppercent0.01
Balance Stepbalance300.0
riskkManual Balance Step / 0Manual_Balance_Step
Order settings

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

Order settings
Source input keyInitial value
=============================================stt2Display text
MaxSpreadMaxSpred150
Slippage in pointsSlippage50
CommentsCommenMyAiGold MQLume
MagicMagic222
Only BUYONBfalse
Only SELLONSfalse
Trading session

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

Trading session
Source input keyInitial value
=============================================stt3Display text
Start Hour (For GMT +3 Summer Time and GMT +2 Winter Time)BeginHour15
Start MinuteBeginMinute0
Finish Hour (For GMT +3 Summer Time and GMT +2 Winter Time)EndHour11
Finish MinuteEndMinute0
Take profit & stop loss

Distances labelled pip use 10 symbol points per unit. TrailStep uses raw symbol points. Check the broker’s quote precision before changing these values.

Take profit & stop loss
Source input keyInitial value
=============================================stt4Display text
TakeProfit,pipTKProfit250.0
StopLoss,pipRST400.0
Trailing stop

Distances labelled pip use 10 symbol points per unit. TrailStep uses raw symbol points. Check the broker’s quote precision before changing these values.

Trailing stop
Source input keyInitial value
=============================================stt5Display text
Trailing On Offtrailtrue
Trailing Distance,pipTrailStart160.0
Trailing From,pipTrailFrom160.0
Trailing Step,pointTrailStep5.0
Panel layout

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

Panel layout
Source input keyInitial value
Panel_CornerPanel_Corner0
Panel_XPanel_X20
Panel_YPanel_Y30
Panel_ScalePanel_Scale1.0
News filter

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

News filter
Source input keyInitial value
===========================News Settings=================stt31Display text
Use NewsFilterNewsFilterfalse
Minutes befor the newsDontOpBef30
Minutes after the newsDontOpAft30
High ImportanceIHtrue
Moderate ImportanceIMfalse

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

Future profits are not guaranteed. You should be comfortable using MQL5 and MT5; difficulties caused by a lack of the required knowledge are outside bug-fix support.

FAQ

Frequently asked questions

Designed for users with programming skills and trading experience who can read code, compile MQL5 and test strategies independently.

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

    Receive

    Source files by email within 6 hours of confirmed payment

Start with a small, free example

Free downloads. Real source files.

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.

Checkout

My AI Gold MT5

Version 1.71 · Personal-use licence

Order total
US$599

Email delivery within 6 hours

Screenshot · My AI Gold MT5

Screenshot — My AI Gold MT5Enlarge image ↗

Cart

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

Your cart is empty

Choose a source project to get started.

Continue shopping