Download MetaTrader 5

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 Code Library for MetaTrader 4 - 32

The largest library features codes of free trading Expert Advisors, technical indicators and scripts. With the available applications you can trade in automated mode and analyze price dynamics. Use the library of codes to learn more about financial market sentiments.

Download free applications, test them and run in your MetaTrader 4. You can access them from the MetaTrader 4 platform and the MetaEditor development environment.


Customizable Fibonacci Tool scripts to make these tools more informative on chart as per your needs.

This EA executes trades when it recognizes candlestick patterns that are associated with Bullish Reversals. Test have been ran on the daily chart. The code still needs a lot of work, so trade at your own risk.

Improved functions iBands и iMACD.

Automatic set (woth confirmation) of tp ans sl calcul use buy cost it work for every trade available and for all symbol. You can change the external parameter for tp and sl. I work on a new version where you could choose sl and tp for each symbol

Trades on two moving average crosses

Trades when the first parabolic sar dot occurs signaling a new trend

Scalper system. It shows the entry, takeprofit and stoploss levels.

Scalper system. It shows the entry, takeprofit and stoploss levels.

This indicator gives BUY and SELL signals and entry level.

Simple multicurrency trend indicator. You can modify it according to your taste.

PEMA is the Pentuple Exponential Moving Average.

QEMA is the Quadruple Exponential Moving Average.

This indicator computes the median of odd span. It is often considered as one of the most robust smoothing operator in the presence of outlier values, and particularly more robust than the mean.

The EA based on break-outs with money management. It is able to trade on multiple pairs.

MACD indicator with possibility to establish mode of moving average and applied price.

Trades using parabolic sar signals

Detects and displays fixed value of Constant Range Candles - Range Bars and Renko Boxes. Place any position on chart.

A brand-new EA to modify orders stop levels

I make the new EA similar Sophia1.1 but logic is different and money management. I saw it strategy up a book of Enrico Malverti (Trading Systems).

Bollinger Bands indicator with possibility to establish mode of moving average, applied price and deviation as a double value.

Find the highest and lowest price in the specified period,then draw four 25~85-degree angle line for forecast price .

EA placing orders progressively and scalping on global profit.

This is the standard MACD indicator drawing two flat lines instead of a signal line. It allows you to detect and trade flat markets.

Regression channel for long period, per variable is number of candle, deviation variable is a standard deviation.

Trades on RSI indicator.

Draws a Horizontal Line at Session Open: On the hour (09:00, 15:00 etc) or any minute past the hour (9:30, 18:47 etc).

Opening trades directly from charts;

Take a look at my EA using the 3 indicators.

Final version of my hybrid Expert Advisor.

Automatically does volume calculation based on percentage of desired account balance and enters instant or pending trades. Optional take profit is automatically at 1:1 with respect to SL.

Displays open position: Profit or Loss + Lots Long or Short + Pips or Points

Expert advisor based on Bollinger bands and Rsi. Modified trailing stop system.

The new idea of the classical Bears Bulls Indicator.

EA based on MAC-Fibo trading strategy

This is classic implementation of the Turtle Trading system, with clear entry/exits signals within the same trend and enter/exit alerts. It should be used together with my other indicator, The Turtle Trading Channel to get further entry signals if you h

A set of scripts to install and work with Gann fan. Custom fan has correct angles and is scale insensitive.

A trend following indicator that implements Dennis Gartman and Bill Eckhart trading system. Commonly known as "The Turtle Trader".

Draws a Vertical Line at Session Open - Eurozone/London - USA - Asia.

Another suggested way to track Heiken Ashi candles and trading short-term price swings

A Line order EA capable of changing stop losses, take profits, trailing stops and lots.