BESTMT4EA

Free EA

Free Open-Source MT5 Expert Advisors You Can Read

A free MIT-licensed collection of MT5 expert advisors you can actually read. Here is how to use a shelf of small, open-source robots as a study corpus.

BESTMT4EA Trading Desk
Updated 28 September 202618 min read

Quick answer

The geraked MetaTrader 5 repository is a free, MIT-licensed collection of eleven open-source expert advisors written in MQL5, each with readable source, a compiled build, a backtest report and a strategy video. It is a study corpus, not a product: you use it to compare entry and exit logic, then run the same tests yourself in the MetaTrader 5 Strategy Tester.

Key takeaways

  • Licence: MIT, as stated for the repository — check its LICENSE file. Commercial use, modification and redistribution are allowed, as long as the copyright notice and licence text travel with what you share.
  • Eleven complete MQL5 expert advisors, each with readable source, a compiled build, a per-strategy backtest report and a short walkthrough video.
  • The value is the shelf, not any single robot: reading eleven entry rules teaches you the vocabulary of decisions that a single closed product hides.
  • Because the source is open, you can run the same tests on all of them — one symbol, one period, one set of costs — and get a comparison table instead of a story.
  • The README warns that some of the experts use grid logic. A grid defers losses into floating drawdown, so a smooth equity curve is not a risk profile.
  • None of it is validated on your broker. The Strategy Tester at your costs, then a demo account, remain the only filters that mean anything.
Shared bundleMT5No licence stated - third-party files shared as-is, unverified

2000+ EA & Indicator Library (shared bundle)

Size: about 577 MB in three zip parts

This link does not download a single file for the tool in this article. It opens a shared Google Drive library of 2,000+ third-party EAs and indicators in three ZIP parts (about 577 MB in total); the tool is inside the bundle under its own file name, if it is there at all. We did not make these files and have not verified their licences, so scan everything, test on a demo account first, and use it entirely at your own risk.

Related open-source project: geraked on GitHub

Own the rights to this file? Request its removal under our DMCA policy.

How to install it

  1. 1

    Download the repository

    Open the geraked/metatrader5 repository on GitHub and download it — Code, then Download ZIP, or clone it with git. Take it from the original repository rather than a mirror so you know exactly what you are running.

  2. 2

    Open your MetaTrader 5 data folder

    In the terminal, go to File and then Open Data Folder. Everything you are about to copy lives under MQL5, beside the Experts and Indicators folders.

  3. 3

    Copy the experts and indicators

    Put the .mq5 files from Experts into MQL5/Experts, and the .mq5 files from Indicators into MQL5/Indicators. The experts call those indicators, so both sets need to be in place before anything compiles.

  4. 4

    Compile in MetaEditor

    Open a strategy's .mq5 file in MetaEditor and press F7. A clean build means the code you just read is the code that will run. If you only want to test quickly, the prebuilt files in the Build folder work too.

  5. 5

    Run one expert in the Strategy Tester

    Press Ctrl+R in MetaTrader 5, choose the expert, symbol, timeframe and date range, and set the spread and commission to what your broker actually charges. Test one expert at a time so the results stay comparable.

  6. 6

    Move the shortlist to a demo account

    Attach only the strategies that survive the tester to a demo account at the broker you intend to use, and log every trade, fill and spread for at least six to eight weeks before any real money is involved.

BESTMT4EA Trading Desk

MQL4/MQL5 developers and traders. We publish the live track record for everything we review.

Ask us on Telegram

You download an expert advisor, drop the file into your MetaTrader terminal, drag it onto a chart, and it begins trading. Within the hour it has opened a position, moved the stop loss, and opened a second position in the opposite direction. You did not ask it to do either of those things. You also cannot find out why it did them.

That gap — between what a robot did and why it did it — is the part of automated trading that never reaches a sales page. Your account balance shows the result. Nothing on your screen shows the reasoning.

A compiled file is a black box on purpose. The author’s logic is the product. Anyone selling that logic to a thousand buyers cannot hand it over in readable form, so you receive machine code, a picture of a rising equity curve, and an instruction to trust both.

This is not a small annoyance. Every decision that matters in automated trading is made inside that box. How much of your account goes into a trade. Whether the stop sits at a fixed number of points or moves with volatility. Whether the robot adds to a losing position. Whether it stands aside before a news release. Whether it holds through the weekend. You can measure the consequences of those choices, but you cannot inspect them, question them, or change them.

So most traders do the only thing available: they judge the box by its latest result. Three good months and it looks like a system. One bad week and it looks broken. Neither conclusion has anything to do with the code.

Here is a composite of the pattern, because it repeats constantly. This is an illustrative composite, not a report about a real trader or account. A robot is sold with a polished page and one compiled file. It runs well for a few weeks on a small balance, the balance is increased, then gold moves hard in one direction. The robot keeps opening positions against the move, the floating loss grows past anything the buyer planned for, and the buyer closes everything by hand.

The word “recovery” on the vendor’s page was the clue. In this corner of the market it usually means a grid, where losses are deferred instead of taken, which is why the curve looked smooth for so long. Two lines of source code would have shown the lot multiplier. The buyer never saw them, because the product only works while the code stays hidden. The money is the small part. The larger cost is the conclusion the buyer draws afterwards: that automated trading does not work. What failed was a business model in which the person running the robot is not allowed to read it.

There is an alternative, and it costs nothing. Instead of one polished black box, you can work through a shelf of small, readable robots — source included, licence stated, logic inspectable — and learn what these programs actually decide. That is what a free collection of open-source MetaTrader 5 expert advisors is genuinely good for. A shelf of readable robots teaches you more than one polished black box ever will.

Advertisement

What is inside the geraked MetaTrader 5 collection?

It is eleven complete expert advisors written in MQL5, published under the MIT licence with the full source code, a compiled build for each strategy, a folder of backtest material, and a short video per robot. Nothing is locked and nothing is hidden; it is a study library with a market-facing name.

The repository (github.com/geraked/metatrader5) is maintained on GitHub by geraked. Each strategy lives in the Experts folder as readable MQL5 source, the compiled builds sit in Build, and the backtest material is organised per strategy under Test.

Expert advisorThe decision it is built aroundPublished build
CEZLSMAChandelier Exit plus ZLSMA on Heikin Ashi candlesv1.6
3MAFThree moving averages with Williams Fractalsv1.5
BBRSIBollinger Bands with RSIv1.6
DHLAOSDaily high and low with the Andean Oscillator, for scalpingv1.5
3MACDTriple MACD, scalpingv1.4
2MACDSTOTwo MACDs with the Stochastic Oscillatorv1.4
2MAAOSTwo moving averages with the Andean Oscillatorv1.4
AFAOSMDAverage Force, Andean Oscillator and MACDv1.5
NWERSIASFNadaraya-Watson Envelope with RSI and an ATR stop finderv1.4
LRCUTBLinear Regression Candles with the UT Botv1.4
COT1Commitments of Traders positioning with Super Trendv1.2

Two things about that table matter more than the names. First, every entry is a small, self-contained ruleset — an indicator cross, a band break, an envelope touch — which is exactly what makes it readable in an evening. Second, several are deliberate variations on a theme, which is the point: put 3MACD and 2MACDSTO side by side and you can see how a signal gets assembled from the same building blocks, and how much difference one extra condition makes.

Around the eleven experts sits the supporting material: the custom indicators they depend on (Chandelier Exit, ZLSMA, Daily High/Low, Andean Oscillator, Average Force, Nadaraya-Watson Envelope, an ATR stop-loss finder, Linear Regression Candles, UT Bot and Super Trend), a shared include that pulls Commitments of Traders data, and a companion repository porting the same strategies to TradingView if you work across both platforms.

Then there is the warning the author puts above the download table. Paraphrased from the README: some of these expert advisors have been combined with the Grid technique to enhance profitability, and that approach also introduces significant risk. It is an unusually honest sentence to find on a page of free trading robots, and it tells you what kind of library this is. The author is not selling you a result. He is handing you the material and telling you where the sharp edges are.

The version numbers are worth noticing as well. Almost every expert carries a release label — v1.6, v1.5, v1.4 — and the Build folder holds the compiled file that matches it. A project that keeps shipping point releases is being maintained, and a maintained library makes a better teacher than an abandoned one, because the README, the videos and the code tend to stay in step with each other.

Why does a shelf of readable robots teach more than one polished product?

Because a library teaches you the vocabulary of decisions, while a single product teaches you one sentence of it. Once you have read eleven entry rules and eleven exit rules, you stop sorting robots into “good” and “bad” and start sorting them into categories.

Here are the categories that actually decide whether a robot survives contact with your account:

  • Does it take a loss without hesitation, or does it hold and add?
  • Does it cap the number of open positions, or is the cap only the size of your account?
  • Does it size by fixed lot, by percentage of equity, or by a multiplier that grows after a loss?
  • Does its stop distance adapt to volatility, or is it a fixed number of points?
  • Does it filter on spread, news or session, and what happens when it does not?

Those questions have answers, and the answers live in the code. A polished product gives you one data point and a narrative. A shelf gives you a comparison set: you can find which designs refuse to trade in thin liquidity, which ones trail a stop, and which ones will happily open nine positions in the same direction.

It also teaches you something subtler — the difference between a strategy and an implementation. Two robots can share the same idea and behave completely differently because one checks the spread before entering and the other does not. Reading both, side by side, makes that visible. If you want a second reference point, EA31337 Libre is another open-source expert advisor for MT4 and MT5 whose code you can read the same way, and the comparison between the two projects is itself instructive.

How do you compare the entry logic of eleven expert advisors?

Advertisement

By reading the same things in the same order in each file and writing the answers down. An MQL5 expert is not hard to navigate. OnTick() runs on every price tick, and somewhere inside it a signal is evaluated and an order function is called.

Read each file with this list in hand.

What to look forWhere it normally livesThe question it answers
Signal sourcecalls such as iCustom, iMA, iRSI, iMACDWhat is the robot actually looking at?
Bar indexthe shift argument — 0, 1 or 2Is it reading a closed bar, or the bar still forming?
Spread filtera comparison against the current spread in pointsDoes it refuse to trade when costs widen?
Order typeOrderSend or a trade wrapper classMarket, limit or stop order?
Direction filtera trend or higher-timeframe conditionCan it trade both ways, or is it effectively one-sided?

The bar index is the one to check first, because it is where most invisible optimism lives. A signal read from shift 0 is reading a candle that has not closed. In a backtest that value is a fact from the historical data. On a live chart it is still moving, which is how a strategy can look prescient in the tester and ordinary in an account.

The spread filter is the second. Several of these experts were written for a broker feed the author had in front of him. A robot that enters regardless of spread is not wrong — it is just making an assumption about your costs, and you should know that before you attach it.

How do you read the exit logic the same way?

Exits decide more about a result than entries do, and they are faster to compare. In a small MQL5 file the whole exit story is usually visible in one pass through the position-management section.

Exit mechanismWhat to search forWhy it changes your risk
Fixed stop and targetstop-loss and take-profit inputs applied at order timeNothing, as long as they are actually set
Volatility-based stopan ATR handle feeding the stop distanceThe stop widens in fast markets, so position size must shrink
Trailing stopa loop that rewrites the stop as price advancesTurns winners into small winners when the market ranges
Break-even movea rule that shifts the stop once profit reaches a thresholdCaps how often a nearly-won trade becomes a loss
Time-based exita bar counter that closes after N candlesPrevents a dead position from sitting open indefinitely
Position capa check on the number of open ordersThe single most important number in any grid-adjacent design

That last row is where the README’s warning becomes something you can act on. A robot that allows its position count to grow without a hard limit is not a strategy with a drawdown; it is a strategy whose drawdown has not arrived yet. The repository’s backtest folders show you the curve. Reading the position-cap rule and the lot multiplier shows you the shape of the tail that curve is hiding. Both matter, and only one of them is on the equity chart.

Can you run them all in the Strategy Tester on one symbol and one period?

Yes, and this is where the library stops being reading material and becomes evidence. Eleven robots tested under identical conditions give you a comparison table. Eleven robots tested under eleven different conditions give you eleven sales pitches.

Hold these fixed across every run:

SettingWhy it must not change
SymbolA robot tested on EURUSD has told you nothing about XAUUSD, where spread and volatility behave differently
TimeframeThe timeframe is part of the strategy, not a preference — changing it tests a different system
Date rangeOverlapping history is what makes two results comparable at all
Deposit and account currencyDrawdown as a percentage is meaningless if the balance changes between tests
Spread and commissionThese are your costs, and they are the easiest thing to accidentally optimise
Modelling methodUse the same tick mode for every run, so the errors are shared rather than compared

Then keep one ledger, one row per robot, and read it honestly.

ColumnWhat you are looking for
TradesUnder about 300 trades, the headline numbers are noise with a chart attached
Profit factor and net resultThe least interesting column, and the one every vendor shows first
Maximum drawdownThe number that decides whether you could actually hold the position
Longest losing streakYour realistic tolerance test, measured in consecutive losses rather than percent
Average trade durationTells you whether the robot needs a wide spread budget or complains about time
Open positions at onceAnything above one is a promise of correlated risk
Survives a wider spread?Re-run at double your normal spread and see what is left

Advertisement

Two habits make the table trustworthy. First, change one thing at a time, and write down what you changed. If a rule only works at one specific parameter set, you have fitted noise rather than found an edge. Second, re-run the decisive test yourself rather than believing a screenshot. A test you produced is a test you can interrogate. If you want the mechanics of the tester itself — what modelling quality means, how the intrabar path is guessed, where commission is entered — our step-by-step backtesting walkthrough covers the settings and what each one does to a result.

Gold deserves a special mention here, because most of the drama in this corner of the market happens on XAUUSD. Gold’s spread is wider than the majors and it widens violently around news, its tick size makes slippage expensive, and it trends hard enough that two or three large moves can dominate an entire equity curve. Test any of these experts on gold with a fixed spread taken from a quiet hour and you have tested an assumption, not a robot.

How do you shortlist which robots deserve a demo slot?

By rejecting, not by ranking. A robot that clears all five of these is worth demo time; a robot that fails any of them is worth deleting:

  1. It opens one position at a time, with a hard cap in the code.
  2. It sets a stop loss, and the stop distance adapts to volatility.
  3. It produced at least 300 trades in your test, on the same symbol and period as the others.
  4. Its drawdown stayed inside a loss you could hold without closing by hand.
  5. It still made sense after you doubled the spread and added commission.

Expect most of the eleven to fail that list. That is a good outcome — the shelf did its job, and it cost you an afternoon rather than an account.

What can you learn from the backtest reports that ship with the repository?

Quite a lot, if you read them as a hypothesis and then try to reproduce them. Every expert in the collection arrives with a Test folder holding its backtest material and a short video walking through the strategy. Used well, that is a syllabus. Used badly, it is somebody else’s marketing, and the difference is entirely in how you handle the assumptions.

The author’s report tells you what a strategy did under his conditions: his broker’s feed, his spread, his deposit, his date range, his tick modelling. It is not evidence about your account, and it never claimed to be. Before you look at the profit factor, find the assumptions listed on the report and write them down — symbol, timeframe, period, modelling quality, deposit. Those five lines tell you how much of the result is even comparable to your own run.

Then reproduce it. Take the same expert, the same version from the Build folder, the same symbol and the same period, and run your own test. Two things can happen. If your numbers land close to his, the strategy is at least not dependent on one particular data feed, and the harder question of costs is worth asking. If they diverge sharply, you have learned something important before spending a cent: the edge lives in a feed or a spread you do not have.

The videos are useful for a different reason. A video shows the strategy in motion, which is how you absorb its rhythm — how often it trades, how long it holds, how it behaves in the quiet hours between sessions. The report shows what that rhythm cost at the worst moment. Watch the video, then read the drawdown, and hold both pictures at once. Most disappointments in this market come from only ever doing one of the two.

Version numbers matter more than they look. A report belongs to a specific release, so if you test a different build from the one it describes, you are comparing two different systems and any conclusion you reach is about your own arithmetic. Match the version before you compare the numbers.

One further exercise is worth an hour: open the companion TradingView repository and read the Pine Script port of a strategy you have already read in MQL5. The same rules written twice is the fastest way to work out which parts of the logic were essential and which were translation detail. It also builds the skill that matters most here — reading a ruleset in a language you do not write fluently — which is exactly what makes a stranger’s compiled robot feel less threatening.

What decisions can you only see by reading the source?

Plenty, and they are the decisions that separate a robot you can live with from one that surprises you.

Advertisement

Position sizing. A fixed 0.01 lot behaves completely differently from a percentage-of-equity calculation, and both are common here. Look for how the lot value is computed and whether it changes after a loss.

Whether losses are deferred. Grid and martingale logic does not remove risk; it moves risk from realised losses into floating drawdown, where it is invisible until it is very large. The README says plainly that some of these experts use the grid technique. You can find out which ones in a few minutes by looking for a loop that opens additional orders as price moves against the first.

Trade management after entry. Break-even moves, trailing stops and partial closes are all optional, and each one changes the distribution of outcomes. A robot with no trade management has a different personality from one that locks in profit at twenty points, even if their entry rules are identical.

Error handling. Does the robot retry a rejected order, and does it check that OrderSend succeeded before assuming a position exists? Files that skip this look fine in a backtest and behave strangely when a broker rejects an order during a spike.

Assumptions about your broker. Stop level minimums, freeze levels, symbol suffixes and fill policies are all broker-specific. Reading the code tells you which of those assumptions the author baked in — and therefore how much re-testing you owe it.

Execution assumptions. A robot that assumes its order fills instantly at the price it requested is describing a market that does not exist under load. During a release the price you asked for is not the price you get. Reading the order code tells you how much slippage the author silently assumed, and therefore how much of the backtest’s apparent edge actually belongs to the broker rather than to the strategy.

How much of it is the author’s own work. These experts lean on custom indicators, several of which come from the wider MQL5 community. Reading the includes tells you which parts of the system the author wrote and which parts he is trusting.

None of that is visible from an equity curve. All of it is visible in about ten minutes with the file open in MetaEditor.

What exactly do you get, and what does the licence allow?

You get a complete, legally usable teaching set: eleven expert advisors with their source, the indicators they need, the compiled builds, the backtest material, and the right to modify and share any of it. That last part is not a footnote. It is the difference between studying a robot and only watching it.

ItemDetail
Namegeraked/metatrader5 — Trading Strategies for MetaTrader 5
Authorgeraked
LicenceMIT
CostFree — no licence fee, no paywall, no sign-up
PlatformMetaTrader 5 only
Contents11 expert advisors in MQL5 source, custom indicators, a Commitments of Traders include, compiled builds, per-strategy backtest material
FormatReadable MQL5 source plus prebuilt compiled files
Where it comes fromThe original GitHub repository, linked in the download card above and in the sources below
SupportCommunity only — the README and the repository’s issue tracker

The repository is published under the MIT licence, so open its LICENSE file and read the copyright line before you redistribute anything. In plain terms, MIT is the most permissive of the common open-source licences. You may use these experts commercially, modify them however you like, and redistribute them, including inside something you sell. The single condition is that the original copyright notice and licence text go with whatever you share. Unlike GPL, MIT does not require you to publish your own modifications — so a strategy you build on top of one of these can stay private.

That combination is unusual in this market. Most free expert advisors arrive as compiled files with an unclear licence and a request to join a Telegram channel. Here, the licence is stated, the source is present, and the only thing the author asks for in return is that you keep the notice attached.

What does this collection not do?

  • It does not come as a finished product. There is no vendor, no onboarding, no settings file tuned to your account, and no one to email when a trade goes wrong.
  • It does not make the grid strategies safe. The README explicitly warns that grid logic adds significant risk. If you run one of those, you are accepting a drawdown profile the equity curve does not show you.
  • It does not ship presets for your broker. Spread, commission, swap, execution speed and even symbol names differ between brokers. A parameter set that works on one feed is a different system on another.
  • It does not publish a verified live track record. You get backtests, which are simulations. We have not traded these systems for you, and there is no audited account behind any of them.
  • It does not include MetaTrader 4 experts. MQL4 and MQL5 are separate languages. If MT4 is your platform, this collection is not for you in its current form.
  • It does not remove the work. Reading the code tells you what a robot decides. Only the tester at your costs, and then a demo account at your broker, tell you anything about the outcome.

What should you do first?

Open the repository and pick three experts — one trend-following, one mean-reverting, one that uses a grid. Read those three files end to end before you compile anything. Look for the position cap in each. You will learn more in ninety minutes than from a month of screenshots.

Then run those three in the MetaTrader 5 Strategy Tester on the same symbol, the same period and the same date range, at your broker’s real spread and commission. Keep the ledger from earlier in this page. If none of them survives a doubled spread, you have saved yourself a funded account’s worth of tuition, and you have learned exactly why the shelf is more honest than a product.

Take the survivor to a demo account at the broker you actually intend to use, and log every trade for six to eight weeks before any real money is involved. Choosing that broker on execution quality rather than on a sign-up bonus matters more than most traders expect — our forex broker comparison covers what to check, and spread consistency on gold belongs near the top of the list. If you would rather widen the reading list first, the free MT4 and MT5 download library has more readable material, and TeknoTrader’s open-source MQL4 indicators are worth the same treatment. You can also browse the free forex EA category or our MT4 EA round-up if you want to see how these designs compare as products.

Do not skip the reading step because the compiled file is faster. The whole point of a free, MIT-licensed collection is that you are allowed to look inside it. Download it, open one file in MetaEditor, and find the three lines that decide whether it takes a loss. That single habit is worth more than any robot on the shelf.

Trading forex and CFDs with leverage carries a high risk of losing money, and no automated system removes that risk. Some of these strategies — particularly the grid designs — can produce drawdowns far larger than a backtest curve suggests. Nothing on this page is financial advice, and no result here is a promise about your future. Test on demo data first, size positions so that a normal losing run is survivable, and only risk money you can afford to lose.

Frequently asked questions

Is the geraked MetaTrader 5 collection free to use commercially?

Yes. The repository ships an MIT licence, which permits commercial use, modification and redistribution. The one obligation is that the original copyright notice and the licence text must travel with anything you redistribute. MIT is not copyleft, so you are not required to publish your own changes.

Are these expert advisors ready to run on a live account?

No. This is a research library, not a product. Parameters that work on one broker's data often behave differently on another, so backtest thoroughly on your own feed first. Treat every expert here as something to study and test on demo data, not as a finished system.

What does the warning about the grid technique actually mean?

It means some of the expert advisors add to losing positions instead of closing them. That makes the equity curve look unusually smooth, because the losses stay floating rather than realised, and it makes the eventual drawdown larger when price trends without returning. It is the single most common way a backtest flatters a strategy.

Do I get the source code, or only compiled files?

Both. The Experts folder holds the full MQL5 source for each strategy, the Build folder holds the compiled files, and the Indicators folder holds the custom indicators they depend on. Having both means you can run a robot immediately and still read, audit and recompile its logic.

Will these expert advisors work on MetaTrader 4?

No. Everything in the repository is written in MQL5 and targets MetaTrader 5. MQL4 and MQL5 are separate languages with different libraries, so an MT4 user needs a different source entirely — the repository also publishes a TradingView port of the same strategies if you work across platforms.

How many expert advisors are in the collection, and what strategies do they cover?

Eleven, ranging from moving-average and Bollinger Band systems to a Nadaraya-Watson envelope, a linear-regression design and one built on Commitments of Traders positioning. Each is a small, self-contained ruleset, which is precisely what makes the collection useful as reading material rather than as a product.

Do the expert advisors come with verified live results?

No, and you should be sceptical of anything that claims to. The repository publishes backtest reports, which are simulations under assumptions you did not choose. We have not traded these systems for you, and past performance, simulated or real, does not indicate what will happen next.

AdvertisementExness

Some links on this page are affiliate links. If you open one and sign up, we may earn a commission at no extra cost to you. It never changes what we publish.

Sources

Risk warning

Past performance is not indicative of future results. Trading forex and CFDs carries a high level of risk and can result in the loss of all of your capital. The results shown are specific to the broker, account type and settings used on the tracked account and will differ elsewhere. Nothing on this site is financial advice.

Continue reading

#1 Ranked EA · Myfxbook Verified

Obsidian Aether EURUSD EA

AI-powered grid scalper for MetaTrader 5 — adaptive ATR spacing, range & trend dual detection, and institutional-grade risk management.

+74.12% GainPF 1.4414 Trades
View Full Review