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

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 simple script that allows you to open a Short position using the current price location with a specified Risk Percentage and Reward Ratio.

A simple script that allows you to open a long position using the current price location with a specified Risk Percentage and Reward Ratio.

This Expert can run on all Symbols and Time Frames and uses the crossover of two Linear Moving Averages as Signal and an Exponential Moving Average as Trailing Stop.

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

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

The indicator of relations between the two true ranges by Larry Williams.

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

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

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

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

Chaikin Oscillator with the market flat state detection option.

The indicator utilizes the idea of ​​finding possible resistance and support levels for a period defined in the indicator input parameters, similar to the use of GSV.

The indicator utilizes the idea of ​​finding possible resistance and support levels, similar to the use of GSV.

The RD-ForecastOsc indicator with the timeframe selection option available in input parameters.

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

The indicator shows when the price goes beyond the volatility range.

A non-normalized indicator that uses MACD, CCI and ADX for calculations.

A non-normalized oscillator that uses Tilman's averaging, drawn in the form of a color cloud.

A TSI oscillator based on the values of the WPR technical indicator, implemented with its own signal line in the form of a colored cloud.

The indicator draws candlesticks of a higher timeframe based on the values of the HullTrend indicator.

The Exp_TSI_CCI Expert Advisor is based on the signals generated by the TSI_CCI oscillator.

The Exp_CronexRSI Expert Advisor is based on the signals generated by the TSI_MACD oscillator.

The Exp_HullTrend Expert Advisor is based on the signals of the trend indicator HullTrend.

Relative Strength Index with the market flat state detection option.

Money Flow Index with the market flat state detection option.

Relative Vigor Index with the market flat state detection option.

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

The indicator draws candlesticks of a larger timeframe as color filled rectangles in accordance with the colors of the AMkA indicator dots.

The AMkA_Signal indicator shows information on the current trend using the values of the AMkA indicator with a fixed timeframe.

The popular indicator by Constantine Kopyrkin. This version is based on the normalized NRatio oscillator.

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

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

The Exp_wlxBWWiseMan-2 Expert Advisor is designed using the semaphore signal indicator wlxBWWiseMan-2.

The trend indicator is formed of a colored cloud of the Hull moving average and its averaging.

An indicator of technical shapes by Merrill. М & W Wave Patterns by A. Merrill.

A TSI oscillator based on the values of the CCI technical indicator, implemented with its own signal line in the from of a colored cloud.

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

A TSI oscillator based on the values of the MACD histogram, implemented with its own signal line in the from of a colored cloud.

The wlxBWWiseMan-2 indicator with the timeframe selection option available in input parameters.

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

1...565758596061626364656667686970...109