Skip to main content
ForexCopilotEA

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.

MT5 Expert Advisors with MQ5 source code compared by market, EA and source version, prices, included files and verdict score
EAMarketEA versionSource versionSource onlyEA + sourceSetfile / manualVerdict
SomaForexMajor forex pairsv1.1v1.1$60.00$80.00neither52.5 · Medium risk
My AI GoldXAUUSDv1.82v1.75$60.00$75.00setfile44.0 · High risk
Ghost ScalperXAUUSDv5.0v5.0$59.99$79.99neither50.5 · High risk
Pac Man BTCBTCUSDv2.0v2.0$59.99$76.99neither41.3 · High risk
HedgehogXAUUSDv1.0v1.0$60.00$80.00neitherNot scored yet
Gold SpaceXAUUSDv3.7v3.7$60.00$80.00neither51.5 · Medium risk
MoonDogXAUUSDv4.24v4.21$59.99$76.99neither51.5 · Medium risk
Allylla Pullback BotXAUUSDv2.8v2.8$60.00$80.00neitherNot scored yet
X Spectrum EAbreakout tradingv1.3v1.3$60.00$80.00neitherNot scored yet
FrontierXAUUSDv1.99v1.99$60.00$72.00neitherNot scored yet
EldoriumXAUUSDv6.2v6.2$60.00$80.00neitherNot scored yet
Ethereum BeastETHUSDv4.35v4.35$60.00$80.00neitherNot scored yet
AI Golden LifeXAUUSDv3.0v3.0$60.00$80.00neitherNot scored yet
SomaGoldXAUUSDv4.0v4.0$60.00$80.00neitherNot scored yet
Lycan MT5arbitrage tradingv2.5v2.3$59.99$76.99neitherNot scored yet
Nova RangeXAUUSDv2.13v2.13$59.99$76.99neitherNot scored yet
Titan ForgeXAUUSDv1.2v1.2$59.99$76.99neitherNot scored yet
Atherion Zenith AIXAUUSDv1.4v1.4$59.99$79.99neither25.5 · High risk
Smart Golden PortfolioXAUUSDv1.4v1.4$60.00$79.99neither40.3 · High risk
BTC Master ProBTCUSDv3.20v3.20$59.99$76.99neither40.5 · High risk
Gold BeaverXAUUSDv5.57v5.56$59.99$76.99neither48.8 · Medium risk
Iron StopsXAUUSDv1.18v1.18$59.99$76.99neither30.5 · High risk
Quantum Athena XXAUUSDv2.0v2.0$51.99$72.00manual31.0 · High risk
Quantum Queen XXAUUSDv4.4v4.4$51.99$72.00manual36.5 · High risk
LizardXAUUSDv2.1v2.1$52.99$76.99neither36.0 · High risk
SomaOilWTIUSDv4.0v4.0$60.00$80.00setfile53.3 · Medium risk
Smart Gold HunterXAUUSDv6.0v6.0$59.99$76.99setfile50.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.

Where to look in an MQL5 Expert Advisor source file and why
Look atSearch the file forWhat it tells you
InputsLines 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 sentOrderSend, 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 sizeThe 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 openLoops 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 filtersTimeCurrent, 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 locksAccountInfoInteger(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

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.