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.
Describe your idea
Ask for a session filter, clearer logging or a different risk rule.
Review the change
Read the proposed code, check the logic and compile it in MetaEditor.
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.
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.
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- MQ5Included
My AI Gold MT5 1.71[MQLume].mq5
Complete, editable single-file source. Read the logic, customise it and compile your own EA.
- EX5Included
My AI Gold MT5 1.71[MQLume].ex5
The compiled EA accompanying the source. Recompile after editing the MQ5.
- TXTIncluded
README.txt
A concise welcome, installation and compilation guide, with licence terms and support details.
- PDFIncluded
PARAMETERS.pdf
13-page guide to all 48 inputs, including defaults, lot-sizing formulas, units and examples.
- TXTIncluded
RELEASE_NOTES.txt
Build details, recorded test conditions, changes and known limits for the supplied package.
- SETIncluded
Presets/VT_XAUUSD_ECN_M1.set
Documented test configuration for XAUUSD-ECN / M1. Some values differ from the source defaults; review them before testing.
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.
| Source input key | Initial value |
|---|---|
ShowInfoPanelShowInfoPanel | true |
Weekly closing
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
=============================================stt11 | Display text |
Close At FridayFriday | true |
Close At Friday Hour(If 0 Close before Closing Market)FrHour | 0 |
Close At WednesdayWednesday2 | false |
Close At Wednesday Hour(If 0 Close before Closing Market)FrHourW | 0 |
Close At Wednesday Minute(If 0 Close before Closing Market)FrMinuteW | 0 |
Entry & execution
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
=============================================stt12 | Display text |
EntryCount | Dual Entry / 1Dual_Entry |
Delay DealDelayD | false |
Delay Deal,SecondsDelayDT | 10 |
AutoGMTAutoGMT | true |
Don't make volume less after lossRecovery | true |
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.
| Source input key | Initial value |
|---|---|
=============================================stt | Display text |
Fix Lot(if 0 is Auto)Lot | 0.0 |
Lot Steppercent | 0.01 |
Balance Stepbalance | 300.0 |
riskk | Manual Balance Step / 0Manual_Balance_Step |
Order settings
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
=============================================stt2 | Display text |
MaxSpreadMaxSpred | 150 |
Slippage in pointsSlippage | 50 |
CommentsCommen | MyAiGold MQLume |
MagicMagic | 222 |
Only BUYONB | false |
Only SELLONS | false |
Trading session
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
=============================================stt3 | Display text |
Start Hour (For GMT +3 Summer Time and GMT +2 Winter Time)BeginHour | 15 |
Start MinuteBeginMinute | 0 |
Finish Hour (For GMT +3 Summer Time and GMT +2 Winter Time)EndHour | 11 |
Finish MinuteEndMinute | 0 |
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.
| Source input key | Initial value |
|---|---|
=============================================stt4 | Display text |
TakeProfit,pipTKProfit | 250.0 |
StopLoss,pipRST | 400.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.
| Source input key | Initial value |
|---|---|
=============================================stt5 | Display text |
Trailing On Offtrail | true |
Trailing Distance,pipTrailStart | 160.0 |
Trailing From,pipTrailFrom | 160.0 |
Trailing Step,pointTrailStep | 5.0 |
Panel layout
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
Panel_CornerPanel_Corner | 0 |
Panel_XPanel_X | 20 |
Panel_YPanel_Y | 30 |
Panel_ScalePanel_Scale | 1.0 |
News filter
Initial settings from the delivered source. Review and test changes before using them.
| Source input key | Initial value |
|---|---|
===========================News Settings=================stt31 | Display text |
Use NewsFilterNewsFilter | false |
Minutes befor the newsDontOpBef | 30 |
Minutes after the newsDontOpAft | 30 |
High ImportanceIH | true |
Moderate ImportanceIM | false |
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 maintainedDelivery & 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 centreWhat 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
Review
Read the files, environment and terms
- 2
Confirm
Check the source version and purchase terms
- 3
Pay
Payment is checked with the provider or on the selected blockchain
- 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.