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

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

Three channels using the ATR indicator, based on one moving average, drawn as a colored cloud, with the display of the last values as price labels and the possibility to round the channel levels up to the required number of digits.

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

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

The AFL_WinnerV2 indicator identifies a trend change by established turnover areas at -50/+50 levels.

This indicator is a hybrid of the SATL (Slow Adaptive Trend Line) digital filter and the JMA analog adaptive averaging.

The STLM digital filter implemented as a sequence of candlesticks.

Calculation of slippages of the performed deals in account currency.

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

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

Smoothed difference between the main and signal lines of the RVI oscillator in the form of a colored histogram.

Smoothed difference between the main and signal lines of the Stochastic oscillator in the form of a colored histogram.

Trading system based on wlxBW5Zone indicator signals.

Semaphore signal indicator based on the values of the Accelerator Oscillator and Awesome Oscillator indicators by Bill Williams, which features alerts, sending emails and push-notifications to mobile devices.

The Exp_i-SpectrAnalysis_WPR Expert Advisor is based on change of direction of the i-SpectrAnalysis_WPR indicator.

The indicator draws candlesticks of a larger timeframe as color filled rectangles using DRAW_FILLING buffers.

Semaphore signal indicator based on the algorithm of the DSSBressert indicator, which features alerts, sending emails and push-notifications to mobile devices.

Instance of the class returns such values as Bid, Ask, High, Low, Close and Open prices of the current candle or any other specified in the parameters, as well as the candle opening time.

The Exp_i-SpectrAnalysis_RVI EA is based on the signals generated by the i-SpectrAnalysis_RVI oscillator.

Semaphore signal indicator based on the relative smoothed rate of price change, which features alerts, sending emails and push-notifications to mobile devices.

The Balance of Power (BOP) indicator as a color histogram of strength and direction of the current trend.

The Exp_RAVI_Histogram breakout trading system based on the signals of the RAVI_Histogram oscillator.

Another alternative to the Bollinger Bands® channel with colored inner area of the channel.

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

The SAR Trading System illustrates the operation of the Stop and Reversal (SAR), developed by Welles Wilder. The Expert Advisor check for presence of an open position and starts moving the stop loss with parabolic acceleration.

Trading system based on Volume_Weighted_MA_StDev indicator signals.

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

Semaphore arrow signal indicator based on the classic Stochastic oscillator leaving the overbought and oversold areas, which features alerts, sending emails and push-notifications to mobile devices.

The Expert Advisor works both in normal mode with one positions, and in the HEDGE mode with multiple positions.

The Volume_Weighted_MA moving average which fills the chart space with a colored background.

The Volume_Weighted_MA indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

Semaphore arrow signal indicator based on the classic Money Flow Index oscillator leaving the overbought and oversold areas, which features alerts, sending emails and push-notifications to mobile devices.

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

The Exp_Volume_Weighted_MA Expert Advisor is based on change of direction of the Volume_Weighted_MA indicator.

Semaphore arrow signal indicator based on the classic Relative Strength Index oscillator leaving the overbought and oversold areas, which features alerts, sending emails and push-notifications to mobile devices.

Semaphore arrow signal indicator based on the classic DeMarker oscillator leaving the overbought and oversold areas, which features alerts, sending emails and push-notifications to mobile devices.

Semaphore arrow signal indicator based on the classic Williams’ Percent Range oscillator leaving the overbought and oversold areas, which features alerts, sending emails and push-notifications to mobile devices.

The idea of this moving average indicator is in giving the bar with a greater volume a greater weight in averaging.

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

The Exp_FRASMAv2 Expert Advisor is based on change in color of the FRASMAv2 moving average.

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

1...404142434445464748495051525354...125