Download MetaTrader 5
Do you need the 24/7 execution of trading signals?

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

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.

previous12345678...66next
latest|best

The Expert Advisor is based on the operation of its predecessor — Forex Fraus (for M1), but using the Envelopes indicator.

The classic Moving Average indicator with a color change depending on the direction.

Tick volumes indicator. It shows the price change with an increase and decrease.

The strategy by Daryl Guppy is implemented using this indicator.

The Expert Advisor is based on the lot management according to the Labouchere system.

The Expert Advisor trades by breakout of High or Low of the previous candlestick.

The Williams Percent Range indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Stochastic indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Relative Vigor Index indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Relative Strength Index indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Momentum indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Moving Average indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Force Index indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The DeMarker indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Commodity Channel Index indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Bulls Power indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Bears Power indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Bollinger Bands indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Average True Range indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

The Expert Advisor uses moving averages, based on the opening and closing prices.

It shows the trend direction for multiple currency pairs on the current time frame.

The indicator plots two Stowell patterns on the right edge of the chart: upper and lower.

The Random EA, which operates by the principle of a coin flip.

The Expert Advisor opens an order by the trading strategy, places a take profit and a stop loss It protects the position by moving the stop loss to breakeven, and maintains it with a trailing stop.

The indicator displays the server time and the time until the current candlestick ends on the М1-D1 timeframes.

The indicator displays the percentage of the price change for the specified period of the specified pairs.

Another interpretation of the moving averages indicators.

The calculation of profit/loss in the deposit currency at the desired symbol price level on all open orders.

24-hour analog GMT(UTC) market clock displaying in background. The clock displays the Greenwich Mean Time and shows the status of all main stock exchanges according to their schedule.

The indicator displays the values of the Moving Averages (MA), deltas between the values and deltas between МАs.

Arrangement of the pending orders at equal intervals (steps).

Tick chart of the price/spread/volume. Saves tick data in a file.

The Moving Average indicator data is used for trading. If the price goes away from the Moving Average by a certain number of points, then an order is placed in the direction of the Moving Average line.

RSI Bollinger Bands are used to establish overbought and oversold RSI regions for generation of short and long trading signals.

Trades on price spikes around important financial announcements.

Price(%)Range is the indicator for the MetaTrader 4, which calculates the price movement based on percentage High (Highest) and Low (Lowest) price on 100 bars.

This is a simple indicator showing pivot only for H1, H4, daily, weekly and monthly.

This code has some functions to close all opened orders once the drawdown reaches a specific percentage of the account balance.

SBVolumeAvg is a Forex Indicator (MetaTrader 4) for calculating Average Volume on the Swing Bars by a ZigZag trend line that is bounded by two vertical lines.

This script plots MQL signal history on a MetaTrader 4 chart.

previous12345678...66