Watch how to download trading robots for free
Find us on Telegram!
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 - 77


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.

Submit your code

The Rads MACD indicator.

Automatically draws Fibonacci Retracement lines from yesterday's range, or today's range.

This expert is based on the Trix indicator created by raff1410

The SuperTrend indicator developed for MetaTrader 4 based on the ProRealTime version.

A two CCI with the coloured trend bars

This indicator separates the days into two different colours on the chart.

The Multi pair MACD indicator. Another variant of MACD, shows the signals for the following pairs: EURUSD, GBPUSD и USDCAD.

A new version of indicator MACD Colored.

The indicator is rewritten from FXAccuCharts to MT4.

The indicator is almost 2 years old. I didn't lay it out, because I had no idea of how to use it.

An example of the script that writes the values of the RSI indicator to a CSV file.


The indicator MoR.

An excellent work for the future. A high profitableness.

Another version of indicator VoltyChannel_Stop.

EA named "gazonkos" produces small profits, but does it often.

The indicator is used to check price locations.

Placing two pending stop orders for breaking through some trade range, for example, before the important news are published.

It reverses all the positions on the current symbol.

The script performs the calculation of the average volatility of the symbol on the specified interval.

Almost classical TS based on the intersection of two MA.

The modification of an order (position) using the mouse - the second script from the "GMO" ("Graphical Management of Orders") series.

A script for visualization of trades on the chart. It is useful when you change the account/PC.

Another indicator that displays the signals for buying and selling.

The indicator InnBar_mtf.

The indicator MA-wpr.

It calculates the entropy by the relative position of benchmarks.

This library was created for testing the portfolio of expert advisors.

Who wanted 5 points per day?

The indicator OzFX_D1_IndAES_v1.0.

The main line, the Silver-channels is drawn on the base of it.

It draws the Kijun line with the specified period on the chart and allows to draw the line with the KijunShift periods forward.

MACD Histogram with outomatic divergent line .

Indicator T3.Lnx. It uses signals Heiken Ashi.

An update for the BW MFI with the displaying of volumes.

YURAZ's library, determining the switch to dayllight saving time and revert to standard time

An oscillator that signals in case of trend changing.

A script for valuation of trades history that is uploaded to the client terminal. The valuation is performed in points.

This expert advisor is based on the 3MACross indicator.

Placing a pending order using the mouse - the first script from the "GMO" ("Graphical Management of Orders") series.

The indicator shows the beginnings and the ends of three trading sessions: Asian, European, and American.