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

Cauchy difference. The indicator shows the difference of arithmetic mean and geometric mean of the price.

Geometric Moving Average.

The Exp_Delta_MFI Expert Advisor is based on the Delta_MFI indicator color change.

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

Trend analyzer based on the difference of two WPR oscillators with different periods.

Moving average for prices (O+C+H+L)/4.

The Exp_Delta_RSI Expert Advisor is based on the Delta_RSI indicator color change.

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

Trend analyzer based on the difference of two MFI oscillators with different periods.

Trading system based on the signals of the ColorXvaMA_Digit_StDev indicator.

The ColorX2MA indicator, which features alerts, sending emails and push-notifications to mobile devices.

Trend analyzer based on the difference of two RSI oscillators with different periods.

The BykovTrend semaphore signal indicator, which features alerts, sending emails and push-notifications to mobile devices.

The indicator that displays tree pivots on one chart, with the ability to change their timeframes.

Another variant of the ZigZag by Rosh.

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

This indicator draws the daily, weekly and monthly Pivot with backtesting.

This indicator displays the trend extremums (maximum and minimum), which may be used as the support and resistance points. It is useful for determining the channel of the current trend. It features alerts, sending emails and push-notifications to mobile devices.

The Exp_i4_DRF_v3 Expert Advisor is based on the i4_DRF_v3 indicator color change.

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

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

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

The Exp_Bear_Bulls_Power Expert Advisor is based on the Bear_Bulls_Power indicator color change.

The Exp_JSatlCandle Expert Advisor based on signals of the JSatlCandle indicator.

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

The Exp_i4_DRF_v2 Expert Advisor is based on the i4_DRF_v2 indicator color change.

The JSatl indicator implemented as a sequence of candlesticks.

The Exp_Waddah_Attar_Trend Expert Advisor is based on the Waddah_Attar_Trend indicator color change.

The Exp_ColorJSatl_Digit Expert Advisor is based on the ColorJSatl_Digit indicator color change.

The ColorJFatl_Digit indicator, 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, which features alerts, sending emails and push-notifications to mobile devices.

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

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

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

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

Virtual Stop Loss or Trailing Stop.

A trend indicator that uses the MACD values multiplied by the averaged price of the financial asset, made as a colored histogram.

The indicator shows the strength of bulls and bears in a simple manner in a single window.

Short-term and cumulative indices of price fluctuations.

The Color Day indicator colors the bullish and bearish days.

1...394041424344454647484950515253...133