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


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
latest | best

Two scripts to automate opening multiple positions simultainiously with SL and TP.

Lighty edited RVI Indicator.If drawing bug please recompile(Make normal drawing). Currently version SRVI@1 and SRVI@2.

easily shows trend or range

Для анализа японских свечей

MACD lines and histogram for the Impulse trading system.

Drag & Drop the script at chart on point where StopLoss should stay. Script will compare desired StopLoss with the current price and determine the type of the order - Buy or Sell. The next step is calculating the volume according Free Margin and the Risk




shows entry price lines. this is based on "inside bar".

The indicator shows candles of the grown-ups TF.

A simple multi currency trader EA based on SMA and LWMA.

using Stochastic m5, m15 and m30

Script for vertical grid lines plotting

Script for horizontal grid lines plotting

Многоранговые фракталы

An indicator that uses a Feed Forward Neural Network to predict the next few open prices. The network is trained using a Backpropagation method. The training is set up automatically, resulting in a self-trained network and a self-learning indicator.

Linear Weighted Fractal Dimension Index (ternd vs notrend filter) plus Step EMA

Traditional Bollinger Bands ®, revisited with algorithm based on Jurik method.

this have EA have Stoploss

This indicator for draw an Arrows for buy & sell, it's Depends on Kijun Line in Ichimoku Indicator

The function changes colour of object. An example of realization in the indicator.

The function changes the name of a font. An example of realization in the indicator.

The indicator is base on "volume spared analysis".

Мультивалютный "мониторинговый" индикатор.

Метод Усреднения

neuronirvamanEA works with neural networks . stoplloss

TD Sequential indicator based off of the criteria descripted in Jason Perl's book "Demark Indicators."

Donchian Channel Indicator

Shows important support / resistance levels from different timeframes. Advanced filtering included.

Just a configurable Bear & Bull "Harami" pattern finder.

The adviser on indicators: Ichimoku, ADX.

Change of the price expressed in percentage.

This indicator for draw an Arrows for buy & sell, it's Depends on Stochastic

This is an EA I coded to make trades and experiment with trading in the Strategy Tester. Drag and drop objects in a yellow basket and control your orders.

Multi timeframe Relative Strength Index - has additional parameter - TimeFrame. You can use it to set up higher timeframe from which Relative Strength Index will calculate its values.

Multi timeframe MACD - has additional parameter - TimeFrame. You can use it to set up higher timeframe from which MACD will calculate its values.

The multiple currency adviser on the indicator Stochastic.


Without the display adviser.

This indicator will display current daily, weekly, and monthly percentage change.