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 - 56

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.


The ZigZag indicator is used.

I created this indicator on the basis of the MQL4 training material. This modified EA is almost from there. All functions are standard, I'm not able to develop something better yet. Only the "heart" of it was modified.

Trading by a break through of the support/resistance levels.

It draws three lines of different periods in one subwindow.

Because of the "supposedly" 24k of errors within the journal, this script did not make it into the championship. Maybe next year Folks : ) So far, There are no errors to be found. "The Grid" (A Massive Hedger)is Coming Soon...

The drawing of the channel's borders was added to the standard ZigZag by MetaQuotes.

On Bollinger Bands grounds

On Bollinger Bands grounds

Indicator V-TBv6. It draws buy and sell arrows.

Indicator i_EF_distance.

Indicator Kwan.

Indicator Elder Impulse System.

It draws the support line basing on two last lower fractals.

It draws the resistance line basing on two last upper fractals.

Work with any http servers...

Indicator Decema.

Another Demark indicator.

Indicator Market Time.

A percentage price oscillator allows you to compare the time periods independently on the price.

MACDVersion2_ Mod is amodification of MACDVersion2 to show some additional information.

Expert Advisor EMA_CROSS.

Indicator STLM_hist.

A script for reinitialization of all indicators attached to the current window.

A very interesting indicator. It gives trading signals!!! A unique system of forecasting is based on a floating moving average!

Indicator FiboCalc.

Indicator Vegas.

The indicator shows the difference between the open price of the zero bar and the close price of the first bar in points at the top-left corner of the main window.

Expert Advisor Divergence Trader.

An EA that works on the M1 period and with the symbols that have the spread of 2 points.

Expert Advisor Straddle&Trail. The code contains a comprehensive description.

Indicator FiboRetracement.

The indicator that shows the difference between the open and close prices in the form of a histogram.

A set of scripts that are intended for the automation of some routine operations in the terminal.

Indicator Price Channel.

Expert Advisor TicksInMySQL.

Indicator DFC Next.

It is shown how you can open positions for 12 symbols available and for 4 timeframes using only one EA attached to only one chart.

Indicator TSI-Osc.

Indicator Correlation USDCHF/EURUSD.

Indicator DeMarker Pivots.