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

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.

To post a new code, please log in or register
latest|best

Simple FX free expert advisor automatically trades the Forex market using moving averages. The expert advisor comes with user manual and source code. All the expert advisors settings can be changed at anytime.

Risk advisor script based on balance Risk Percent.

Close all multi currency open orders and cancel pending orders according to various scenarios. Slippage for open orders is calculated for each currency. Choose only one scenario per visit, the script processes the first menu item selected.

There are some scripts in the zip archive which could be very usefull in intraday trading. With them you can respond on market changes very quickly.

Graphs correlation between percent change of the price signal, and the price signal, to determine high probability of current price signal direction.

Pivot Point is a turning point for the direction of price movement in a market.

R-Squared indicator.

Change the size of lot, add the filter and you will receive a ... winwin2007. Works only at a spread 2.

Индикатор Trading hours.

Ещё одна разновидность Индикатора WcciPaterns, только в качестве осциллятора.

This indicator show you the trend type

Сигналы входов и выходов по системе Эффект пятницы.

The indicator Alternative Ichimoku was developed as an alternative to the famous indicator Ichimoku Kinko Hyo. For a more precise forecast, it is better to use on one timeframe both indicators - Ichimoku Kinko Hyo and Alternative Ichimoku.

PowerTrend corrected

Do you see 3 bearish and consecutive lengthening bars? Bears - goodbye!

Fractals indicator with the custom period feature

The indicator plots various levels of Neely Monowaves on the chart.

This is very simple, power and easy to use Indicator

This indicator is based on the Jamie Saettele Going Beyond 70 and 30 system. Basically RSI crosses and ATR for entry.

This indicator is very powerful .. It draws Month - Week - Day - H4 Level or Range. with backtest true or false.

This indicator separate Buy Volume and Sell Volume .. you never see like this before

This FX5_SelfAdjustingRSI idicator draws RSI self adjusting overbought-oversold that were suggested by David Sepiashvili.

This is another flavour of the original divergence indicator. It detects divergence between price and MACD indicator and gives Buy or Sell signals according to the divergence type.

Kaufman's AMA with optimization for the long periods.

This indicator will detect divergence between the price and OsMA indicator. It will give buy or sell signal according to the type of divergence that was detected.

5days indicator marks the first bar of each new day.

i-OneThird indicator highlights bullish and bearish candles in HeikenAshi style.

i-HighLow indicator draws the channel with borders correspond to highest high and lowest low values of the bar's shadows for the last N bars.

i-Breakeven groups the open position by symbol and for the each of group shows: 1. The current equity level. 2. The estimated breakeven level.

You never see like this indicator before. This indicator draw Dayly RSI Level on your chart like CAMERILLA and Pivot. The levels is very powerful and very matchful. Try it quickly.

Disparity Index indicator is a percentage display of the latest close to a chosen moving average. For more in depth interpretation of the Disparity Index refer to Steve Nison's book "Beyond Candlesticks".

This code is simple variation of Bollinger Bands code which comes with Metatrader4, if we change Standard Deviation by ATR we have StarcBands.

This Indicatro Draw Weekly CAMERILLA Levels H1 H2 H3 H4 L1 L2 L3 L4 with back test.

This Indicator Draw Dayly CAMERILLA Levels H1 H2 H3 H4 L1 L2 L3 L4 with back test.

The Expert Adviser Frank_ud all time in the market in both sides.

This indicator Draw True Weekly Pivot Line and seven levels Up ( R1,R2,R3 ... ) and seven levels Down ( S1,S2,S3 ...).

This indicator Draw True Pivot Line and seven levels Up ( R1,R2,R3 ... ) and seven levels Down ( S1,S2,S3 ...) with back test.

This script will plot Fibonacci golden spiral on the chart.

This indicator will plot Fibonacci golden spiral on the chart.

Indicator MadroGoldenFilter gives four signals to filtering 4 strategies.

1...73747576777879808182838485