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

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

A semaphore signal indicator based on the price extremums for the period determined by the indicator input parameter.

The ColorBearsGap indicator with the timeframe selection option available in the input parameters.

The ColorBullsGap indicator with the timeframe selection option available in the input parameters.

The indicator marks the bars, the size of which exceeds the value specified in the settings. The body of the bar, the opening price and the closing price of the bar are taken into account.

The METRO_Stochastic_HTF_Signal indicator shows the trend direction or a signal for performing a trade generated by the METRO_Stochastic_Sign indicator at the chosen bar as a graphic object with colored indication of the trend or the trade direction and generates alerts or sound notifications if there are signals for performing trades.

The METRO_HTF_Signal indicator shows the trend direction or a signal for performing a trade generated by the METRO_Sign indicator at the chosen bar as a graphic object with colored indication of the trend or the trade direction and generates alerts or sound notifications if there are signals for performing trades.

The METRO_WPR_HTF_Signal indicator shows the trend direction or a signal for performing a trade generated by the METRO_WPR_Sign indicator at the chosen bar as a graphic object with colored indication of the trend or the trade direction and generates alerts or sound notifications if there are signals for performing trades.

ForexLine indicator provides signals for trade: red line (sell signal) and blue line (buy signal).

The Expert Advisor sends trade requests using OrderSendAsync() function.

METRO_XRSX_HTF_Signal shows a trend direction or a signal for performing a deal generated by METRO_XRSX_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

Three Double Exponential Moving Average indicators from three different timeframes displayed on the same chart.

The Double Exponential Moving Average indicator with the timeframe selection option available in input parameters.

The indicator demonstrates the operation of obtaining the ticks using the "CopyTicks", and allows to compare the three modes of obtaining ticks.

The Adaptive Moving Average indicator with the timeframe selection option available in input parameters.

Three Adaptive Moving Average indicators from three different timeframes displayed on the same chart.

The XDidi_Index with the timeframe selection option available in the input parameters.

The RealValue with the timeframe selection option available in the input parameters.

This indicator is an attempt to evaluate the real market value of a financial asset.

The Didi needles indicator with the advanced customization settings of the moving averages used in its calculations.

A semaphore signal indicator that uses an algorithm based on crossovers of two moving averages.

The Didi_Index indicator with the timeframe selection option available in the input parameters.

METRO_DeMarker_HTF_Signal shows a trend direction or a signal for performing a deal generated by METRO_DeMarker_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

The F_RSI indicator with the timeframe selection option available in the input parameters.

The RSI with dynamic levels.

The ATRSmoothed indicator with the timeframe selection option available in the input parameters.

Three ATRSmoothed indicators from three different timeframes on one chart.

A common Average True Range with the ability to smooth the resulting curve using an additional averaging method.

Performs the Empirical Mode Decomposition for the current instrument.

Three Chaikin oscillators with three different timeframes on one chart.

Awesome_HTF_Signal shows a trend direction or a signal for performing a deal generated by Awesome_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

Three Trix oscillators with three different timeframes on one chart.

Semaphore signal indicator based on the ColorMETRO_XRSX indicator cloud color change algorithm.

Semaphore signal indicator based on the Awesome_Signal indicator cloud color change algorithm.

Trading system using the ColorMETRO_XRSX indicator.

The VKW_Bands_Modify_XRSX with the timeframe selection option available in the input parameters.

The indicator for determining the time when the pending orders should be placed, using the ColorMETRO_XRSX oscillator.

The ColorMETRO_XRSX with the timeframe selection option available in the input parameters.

Indicator of the oscillator type, which displays its values based on the XRSX technical indicator.

The Squeeze_RA_V1 indicator with the timeframe selection option available in input parameters.

Semaphore signal indicator based on the 3D_Oscilator indicator intersection algorithm.

1...394041424344454647484950515253...115