MT5 Expert Advisors with MQ5 source code
27 of the 66 Expert Advisors we list sell their MQ5 source as well as the compiled EA. The source alone costs $51.99 to $60.00; the EA and source together cost $72.00 to $80.00, against $26.99 for the compiled EA on its own. With the .mq5 file you can read how the EA enters, sizes and protects each trade, change it for your own accounts, and recompile it in MetaEditor.
- 27
- listings with an MQ5 source edition
- 23
- where the source version matches the EA version
- 16
- with a published verdict score
Every source-code edition, side by side
Prices are in USD, one-time. A source version in bold differs from the compiled EA version on the same listing.
| EA | Market | EA version | Source version | Source only | EA + source | Setfile / manual | Verdict |
|---|---|---|---|---|---|---|---|
| SomaForex | Major forex pairs | v1.1 | v1.1 | $60.00 | $80.00 | neither | 52.5 · Medium risk |
| My AI Gold | XAUUSD | v1.82 | v1.75 | $60.00 | $75.00 | setfile | 44.0 · High risk |
| Ghost Scalper | XAUUSD | v5.0 | v5.0 | $59.99 | $79.99 | neither | 50.5 · High risk |
| Pac Man BTC | BTCUSD | v2.0 | v2.0 | $59.99 | $76.99 | neither | 41.3 · High risk |
| Hedgehog | XAUUSD | v1.0 | v1.0 | $60.00 | $80.00 | neither | Not scored yet |
| Gold Space | XAUUSD | v3.7 | v3.7 | $60.00 | $80.00 | neither | 51.5 · Medium risk |
| MoonDog | XAUUSD | v4.24 | v4.21 | $59.99 | $76.99 | neither | 51.5 · Medium risk |
| Allylla Pullback Bot | XAUUSD | v2.8 | v2.8 | $60.00 | $80.00 | neither | Not scored yet |
| X Spectrum EA | breakout trading | v1.3 | v1.3 | $60.00 | $80.00 | neither | Not scored yet |
| Frontier | XAUUSD | v1.99 | v1.99 | $60.00 | $72.00 | neither | Not scored yet |
| Eldorium | XAUUSD | v6.2 | v6.2 | $60.00 | $80.00 | neither | Not scored yet |
| Ethereum Beast | ETHUSD | v4.35 | v4.35 | $60.00 | $80.00 | neither | Not scored yet |
| AI Golden Life | XAUUSD | v3.0 | v3.0 | $60.00 | $80.00 | neither | Not scored yet |
| SomaGold | XAUUSD | v4.0 | v4.0 | $60.00 | $80.00 | neither | Not scored yet |
| Lycan MT5 | arbitrage trading | v2.5 | v2.3 | $59.99 | $76.99 | neither | Not scored yet |
| Nova Range | XAUUSD | v2.13 | v2.13 | $59.99 | $76.99 | neither | Not scored yet |
| Titan Forge | XAUUSD | v1.2 | v1.2 | $59.99 | $76.99 | neither | Not scored yet |
| Atherion Zenith AI | XAUUSD | v1.4 | v1.4 | $59.99 | $79.99 | neither | 25.5 · High risk |
| Smart Golden Portfolio | XAUUSD | v1.4 | v1.4 | $60.00 | $79.99 | neither | 40.3 · High risk |
| BTC Master Pro | BTCUSD | v3.20 | v3.20 | $59.99 | $76.99 | neither | 40.5 · High risk |
| Gold Beaver | XAUUSD | v5.57 | v5.56 | $59.99 | $76.99 | neither | 48.8 · Medium risk |
| Iron Stops | XAUUSD | v1.18 | v1.18 | $59.99 | $76.99 | neither | 30.5 · High risk |
| Quantum Athena X | XAUUSD | v2.0 | v2.0 | $51.99 | $72.00 | manual | 31.0 · High risk |
| Quantum Queen X | XAUUSD | v4.4 | v4.4 | $51.99 | $72.00 | manual | 36.5 · High risk |
| Lizard | XAUUSD | v2.1 | v2.1 | $52.99 | $76.99 | neither | 36.0 · High risk |
| SomaOil | WTIUSD | v4.0 | v4.0 | $60.00 | $80.00 | setfile | 53.3 · Medium risk |
| Smart Gold Hunter | XAUUSD | v6.0 | v6.0 | $59.99 | $76.99 | setfile | 50.0 · High risk |
Source behind the EA on 4 listings. My AI Gold (EA v1.82, source v1.75); MoonDog (EA v4.24, source v4.21); Lycan MT5 (EA v2.5, source v2.3); Gold Beaver (EA v5.57, source v5.56). The source you receive is the version shown, so changes made in the newer compiled EA are not in it.
Of the 16 source listings with a published verdict, the median score is 42.6 out of 100 and the highest is 53.3 (SomaOil). Having the source does not raise a score: the score weighs independent evidence of results, which the code alone cannot give. We sell every listing here, so read the scores with that in mind. How the scores work.
What to read first in an EA's source
You do not need to read every line. Open the .mq5 in MetaEditor, use Find (Ctrl+F) for the names below, and in about half an hour you will know how the EA takes risk.
| Look at | Search the file for | What it tells you |
|---|---|---|
| Inputs | Lines starting with input or sinput, near the top of the file. | Every setting the EA exposes, with its default. Compare the defaults with the setfile, if one ships, and note any risk input the description never mentioned. |
| Where orders are sent | OrderSend, or a CTrade object calling Buy, Sell, BuyStop, SellStop or PositionOpen. | Each call site is one way the EA can open risk. Check whether a stop loss value is passed in the same call, or set later with PositionModify, or never. |
| Lot size | The variable passed as volume, and the function that sets it (often reading AccountInfoDouble(ACCOUNT_BALANCE) or ACCOUNT_EQUITY). | Look for a multiplier applied after a loss or as more positions open (names like LotMultiplier, Martingale, Factor). That is the line that turns a small loss into a large one. |
| How many positions can be open | Loops over PositionsTotal() and any maximum-trades input. | A grid adds positions as price moves away. If there is no cap, the open risk has no ceiling either. |
| Time, spread and news filters | TimeCurrent, TimeGMT, SymbolInfoInteger(_Symbol, SYMBOL_SPREAD), and any calendar functions such as CalendarValueHistory. | Tells you whether the session and spread limits the description promises are actually coded, and which server time zone they assume. |
| External dependencies | #include lines (.mqh files) and #import lines (DLLs). | The .mq5 will not compile unless every included .mqh is present. A #import of a DLL needs Allow DLL imports in MetaTrader 5 and runs code you cannot read in the .mq5 itself. |
| Licence or account locks | AccountInfoInteger(ACCOUNT_LOGIN), TimeCurrent compared with a fixed date, or WebRequest calls. | Some EAs stop trading on unknown accounts or after a date, or call a server. Know this before you rely on it. |
What the source licence allows
- You may modify the MQ5 source for your own use, on your own trading accounts.
- You may not redistribute the source or works derived from it, and may not remove licence or copyright notices.
- The licence is personal, non-exclusive and non-transferable. The full wording is in section 7 of our terms.
Questions about source-code editions
What is the difference between the source-only and the bundle edition?
Source only delivers the .mq5 file and nothing else: no compiled .ex5, setfile or manual. You compile it yourself in MetaEditor. The bundle delivers the compiled .ex5 as well, plus whatever the EA edition of that listing includes.
Can I change the code and sell my version?
No. Under our terms you may modify MQ5 source for your own use only, and you may not redistribute the source or works derived from it.
Is the source the same version as the EA?
Usually, but not always. On 4 of the 27 listings the source file is an older version than the compiled EA; the table above shows which. If you need the exact version, check the two version numbers before you buy, or ask us.
Will it compile straight away?
It should compile in MetaEditor with F7 when every #include file it references is present. If a listing's source relies on a DLL or an extra .mqh library, ask us before you buy which files ship with it.
Does having the source tell me whether the EA is profitable?
No. Source shows how the EA decides and how it manages risk. Whether those rules made money is a question for a long, independent live record and your own tests, which is what our verdict scores weigh.
Source-code listings
Trading involves risk. Source code shows how an EA works, not whether it will be profitable.


























