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


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 indicator OzFx Signals v1.7.

The EA trades based on the trend continuation pattern of the MACD indicator.

The indicator "sell zone fibs".

The library contains the functions that ease the writing of EAs.

The script automates the drawing of time lines of opening/closing of a calendar day and the price lines of opening/closing of the days.

An indicator to discover the trend/flat and fallacious technical data.

A moving average calculated according to the method of the linear regression and complemented buy the Bollinger bands.

The AllAverages_v1 indicator.

A pipser.

The indicator displays the statistics of maximums and minimums in the form of a hystogram located to the left of the chart in the chart window.

The CCI CustomCandles indicator.

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.