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

MQL5 Source Code Library for MetaTrader 5 - 72

This is the largest free source code library for MetaTrader 5 platform programs. Here you can find ready-made Expert Advisors, technical indicators, scripts and libraries. Use the code library when learning MQL5 language and develop your own automated trading applications based on the provided codes.

You can freely download and test published codes, as well as launch them in MetaTrader 5. The library is also available directly from MetaTrader 5 platform and MetaEditor development environment.

latest|best

The code is designed to be a simple reference of how to create movable (drag) panels and populate it with information.

An indicator of trend power with eight states.

Spread Indicator - displays current spread in the chart window.

A set of support and resistance levels with five different timeframes.

A moving average indicator obtained by averaging the values of all calculation variants of the classical Moving Average.

An analogue of the Alligator indicator with a smaller lag of signals.

The KAGI chart in the simplest form.

A standard high-frequency filter.

The EMA_Prediction_HTF_Signal indicator shows trend direction based on the data of the EMA_Prediction indicator as a graphical object with colored trend indication, gives alerts or audio signals and sends push notifications on your smartphone.

The indicator draws fractals based on three candlesticks.

Coloring price chart bars depending on the size of price change.

Three main stochastic lines from three different timeframes on one chart.

The linear regression line with data placed in the indicator buffer.

A digital filter of rapid trend with a reference line, implemented in the form of a cloud.

A set of target support/resistance levels for the predicted price movement.

The Moving Average Expert Advisor trades when the price crosses the MA.

Three Moving Averages with three different timeframes on one chart.

Ergodic MACD-Oscillator implemented in the form of a color histogram.

A trading system that uses the Candle Momentum indicator.

A trading system that uses the Candle Momentum Index.

William Blau's Directional Trend Index in the form of a colored histogram.

The Candle Stochastic Index indicator implemented in the form of a color histogram.

A candlestick momentum with a triple EMA averaging.

The ergodic CMI Oscillator as a color histogram.

A normalized oscillator of two curves, similar to the Aroon indicator.

One of the indicators of tick volume with multiple EMAs by William Blau.

Three smooth fast digital filters JFATL with three different timeframes displayed on the same chart.

An indicator that uses tick volume for calculations.

Three Bollinger Bands with different timeframes with the same parameters on one chart.

Three RSI oscillators with three different timeframes on one chart.

A semaphore signal indicator forming signals when price gaps appear.

The indicator analyzes the latest three bars on the basis of a quadratic function and is displayed as a histogram with two signal lines with different periods.

A semaphore signal indicator. Its signals are calculated similarly to the Fast2 indicator. The difference is that trade signals are shown on the chart as corresponding arrows.

The indicator displays DiNapoli levels on the current chart using alerts.

The indicator draws trend support and resistance lines.

A semaphore arrow indicator using two moving averages.

The MDAC indicator with bar coloring according to Elder.

The indicator shows the method of drawing gradient semitransparent areas with independent update rate.

Barishpolts' moving channels on fractals.

The NRTR indicator based on Average True Range technical indicator.

1...656667686970717273747576777879...109