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

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.

latest|best

FATL (Fast Adaptive Trend Line) - the «fast» adaptive trend line is calculated using a digital low-pass filter (cream-colored line on the chart).

Example of optimization using the "running total" method.

The classic TTF with the T3 smoothing method and signal lines.

True Strength Index (TSI) is a double-smoothed Momentum. TSI follows the bars with little or hardly noticeable delay in the main and intermediate trend reversal points.

Triangular Moving Average (TMA). The main weight goes for the average part of the price series. In fact, they are double-smoothed simple moving averages.

DeMark indicator - changed the rendering of the TD lines.

The "Trend Detection Index" indicator is a modified "TDI" indicator.

Sequential is an automated trading system developed by Thomas DeMark.

It uses a detrender based on a Т3 filter, and the "moment" is the price at the closing of the bar.

The indicator draws levels interestingly, especially on the smaller timeframes.

Indicator for a strategy that uses CCI. When trading Woodies CCI all you need is to find Woodies CCI patterns.

The Zig Zag indicator with a sound alert on appearance of a new line on the chart.

Clearly displays the gaps in points as a colored histogram.

My version of plotting the DeMark lines, also draws channels in addition to the trend lines and targets. Added one more target (the third one defined as 1.62 of the inner extremum), added the signal cancellation when closing within the channel.

The indicator of the first price change derivative or simply trend speed and sign.

This indicator shows the trend from the smaller timeframes up to H4.

Have you perhaps heard about the caterpillar? Here it is.... I do not remember where I got the code, I simply translated it from С++ to MQL4.

Library functions, get the HIGH LOW for the specified time interval

The indicator plots a moving average with a Bollinger type envelope.

The indicator generates buy and sell signals.

(Slow Adaptive Trend Line) – the «slow» adaptive trend line is calculated using a digital low-pass filter LPF-2. LPF-2 serves to eliminate the noises and market cycles with longer fluctuation periods.

Very convenient to confirm any market entry signals.

The Regression Channel is based on the Linear Regression Trend, which represents a usual trend line plotted between two points on a price chart using the method of least squares.

The Parabolic SAR was also developed by Welles Wilder for use in trending markets. The author of this indicator recommended to identify the trend first, and only after that to use the PSAR for trading with the trend.

Reference Slow Trend Line (RSTL) is a response of the SATL digital filter to the series of input prices with a delay equal to the Nyquist interval of 1/2F.

Trigger based on two MA by DeMarker.

This is a high-quality ZigZag based on HiLo.

Reference Fast Trend Line (RFTL) is a response of the FATL digital filter to the series of input prices with a delay equal to the Nyquist interval of 1/2F.

The modified version of the RBCI indicator.

Perfect Commodity Channel Index. It has a certain similarity in the calculation method with the Commodity Channel Index (CCI) by D. Lambert.

Trend indicator based on the Kaufman's AMA.

The indicator contains another entry signalizer.

One of the greatly smoothing trend indicators.

As I recall, this indicator had been written by OlegVS for МТ3, for determining the flat. If the price is inside the dotted channel - flat. And MaksiGen redesigned it for МТ4.

This indicator shows when to open and when to close by drawing 2 lines.

The "Camarilla Pivots" indicator. The ideal indicator for those who like to work "by levels". It clearly shows the reversal level, support/resistance levels for the current day.

The indicator that facilitates the interpretation of the Ichimoku signals.

The indicator calculates the indices of the USD, EUR, GBP, CHF, AUD, CAD currencies and displays the index specified in the parameters in a separate window.

MACD2 generates bearish signals from three main sources. These signals are a reflection of the bullish signals - negative divergence, bearish intersection of the moving averages, bearish intersection of the center line.

The indicators that perform the chart ruling.

1...5678910111213141516171819...84