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

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

Universal moving average that fills the chart space with a colored background and displays the most recent value as a price label with the possibility to round the channel levels up to a required number of digits, as well as displays a price grid with those rounded values.

Universal moving average that fills the chart space with a colored background and displays the most recent value as a price label with the possibility to round the channel levels up to a required number of digits.

Universal moving average that displays the most recent value as a price label with the possibility to round the channel levels up to a required number of digits.

Universal moving average which fills the chart space with a colored background. The moving average itself serves as the color separation line.

The Expert Advisor enables and disables the "AutoTrading" button at a certain time and closes all opened positions on the account once the specified period of time expires.

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

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

A modification of the popular ADX indicator.

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

The ExVolV2 calculates the difference between the total sum of bodies of growing and falling candlesticks on a given interval.

The ExMassV2 indicator helps to evaluate market fluctuations.

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

Famous indicator by Konstantin Kopyrkin, it produced numerous realizations of the NRTR indicator. It displays the most recent value as a price label with the possibility to round the channel levels up to a required number of digits.

Semaphore arrow signal indicator based on the classic Stochastic leaving the overbought and oversold areas.

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

Exp_TSICloud Expert Advisor is based on the change of color of TSICloud indicator.

PriceChannel_Stop indicator displays the most recent value as a price label with the the possibility to round the channel levels up to a required number of digits.

T3Taotra indicator with the timeframe selection option available in input parameters.

Oscillator in the form of a cloud based on correlation of two smoothed Momentums from different timeframes.

PriceChannel_Stop indicator with the timeframe selection option available in input parameters.

Exp_Directed_Movement is based on the change of color of ROC2_VG indicator.

ROC2_VG indicator with the timeframe selection option available in the input parameters.

Envelopes indicator with the color filling inside the channel, drawn as a cloud, with the display of the last values as price labels and the possibility to round the channel levels up to a required number of digits, and a price grid with these rounded values.

Envelopes indicator with the color filling inside the channel, drawn as a cloud, with the display of the last values as price labels and the possibility to round the channel levels up to a required number of digits.

TrendX indicator can be used for the market entry/exit.

Plotting ROC indicators of two arbitrary types (including Momentum) and periods in a single window.

M2_MA indicator with the timeframe selection option available in the input parameters.

M2_MA indicator implemented as a sequence of candlesticks.

MaChannel indicator with the timeframe selection option available in input parameters.

Trading system based on MaChannel indicator signals.

Exp_Q2MA is based on the change of color of the Q2MA indicator.

Q2MA indicator with the timeframe selection option available in input parameters.

Smooth non-trivial linear combination of EMA and LWMA averagings.

A simple trend indicator based on two Moving Averages in NRTR form.

A simple trend indicator based on two Moving Averages in the form of a colored cloud.

Semaphore signal indicator using asymmetric Stochastic oscillator in the form of a colored cloud.

AsymmetricStochNR_Cloud indicator with the timeframe selection option available in input parameters.

Asymmetric Stochastic oscillator in the form of a colored cloud.

Exp_Directed_Movement Expert Advisor is based on the change of color of the CCI_Woodies indicator.

CCI_Woodies indicator with the timeframe selection option available in input parameters.

1...262728293031323334353637383940...109