Watch how to download trading robots for free

Find us on Facebook!
Join our fan page

Access the CodeBase from your MetaTrader 5 terminal

Couldn't find the right code? Order it in the Freelance section

How to Write an Expert Advisor or an Indicator

MQL4 Source Codes of Expert Advisors for MetaTrader 4 - 8

Various applications to automate analysis and trading are available in the 'Expert Advisors' section. It features various applications based on different trading algorithms and provides different degrees of automation. You can find simple EAs and complex trading robots that can fully automate analysis and trading processes.

These applications can be downloaded and run in MetaTrader 4. It is recommended to test and optimize Expert Advisors in the Strategy tester. The Expert Advisors from the library can be accessed from the MetaTrader 4 platform and the MetaEditor development environment.

latest|best

liquidex is a HFT EA. It uses moving average and range to determine it's entries and exits.

The EA will close all open orders across all charts corresponding to the EA chart symbol when Bid or Ask is equal to or crosses the Kijun Sen.

The EA will close all open orders across all charts corresponding to the EA chart symbol when Bid or Ask is equal to or crosses the MA.

It Is placing stop loss and take profit at a given distance. Displays the current status of open orders. For closing of the order it is enough to select and move the label to the left.

Example of working with OBJ_EDIT graphic object.

This isn't an operating EA, but profit management EA.

Example of working with OBJ_LABEL graphic object.

It uses 3 fast MAs to determine entries and exits as well in an event of a crossover.

This is the Expert Advisor with Money Management and signal selection. You can add your own signals in this EA very easily by just adjusting the function signals.

Coensio Swing Trader makes it possible to trade semi-automatically using manually pre-defined support/resistance or breakout levels.

Best used on monthly candlestick charts with four decimal points to a pip (use the JPY version for other pairs). This EA calculates the likelihood of your desired range of pips being hit based on two years of past trading ranges and a statistical forecast

Trade 5min charts mostly EURUSD. Added news filter from Forex Factory and stops. Loads of versions inside. Good luck

EA for Trading on News event, will set BUY and SELL Stop (pending order) then will delete one pending order after open BUY/SELL occur (OCO) on specifed date and time.

Timer is a break trough system.

The idea of this robot is to catch long trends. Crossing the 15Min moving average triggers buy and sell orders.

Trade EURUSD 5 min scalping or similar. Good Luck.

System open positions after crossing hand drawn trendlines on chart.

When the order reaches the specified profit, then EA automatically moves StopLoss to BreakEven.

An EA with automatic trading at setable minute using stochastic indicator and scalping lot

This EA will watch your open positions and close the ones that meet the preset conditions.

The Great Hunter, is a Holy Grail attempt, by using a mix of trend following indicators, volatility filters and martingale system (optional).

This EA puts two simultaneously Pending Orders (Buy Stop and Sell Stop), when activated one of two pending orders, the reverse pending order is closed.

An EA meant as advanced Order-Placement tool, which tries to help its user to set the "Stop-Loss"-level farther away with the same or less losses than normally expected.

X trader trades using two moving average crosses.

It trades huge amount of trades with small lot sizes. Does not use indicators or price formations, buys/sells in growth/fall of price.

AntiFragile EA is an innovative trading strategy built on the idea of Antifragility professed by Nassim Nicholas Taleb. The general idea is to gain from disorder.

This Expert Advisor trades Parabolic Sar (PSAR) trend changes and applies a fast exit strategy. The parabolic SAR is a technical indicator developed by J. Wells Wilder. Basically, if the stock is trading below the parabolic SAR you should sell. If the sto

You can either be long or short at any given time. You buy and close a short position if the market makes a new 100-day high, and sell and close a long position if the market makes a new 100-day low.

Buy only using High Previous candle Breakout H4 timeframe

Writes Account Balance, Equity, Margin, to a .csv file in regular intervals, and alerts via email when certain Margins levels are reached

Aeron Expert Advisor is well known. I am the author of Aeron Expert Advosor. It is based on martingale pattern and all of its parameters are fully customisable.

Expert Advisor opens deals based on price consolidations

The Expert Advisor places buy trades when RSI crosses above 73 and sells when it drops below 27. A trailing stop based on ATR protects profits.

Improvements to the previous version.

I wrote a new indicator to find the range bound period, then we can place order when the price break the range bound.

"Follow Your Heart" is an Expert Advisor that open an Order strictly by price increase/decrease during nBars on the M1 time frame (without any indicators).

This EA will open a Long Order if the Price move above yesterday High or Short Order if the Price move beneath yesterday Low.

Expert Advisor based on the ACD and MA Attention: this is not a Holy Grail

Trades when two moving averages cross each other

Trades using parabolic SAR signals

123456789101112131415...22