Watch how to download trading robots for free
Find us on Telegram!
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 - 75

icon

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.

Submit your code

RSI+CCI in one window.

Colored Bollinger Bands

The EA trades using the signals of iADX (Average Directional Movement Index, ADX) and iSAR (Parabolic SAR) indicators. The profit/loss of the last closed position is taken into account. Positions are moved to breakeven.

The indicator searches for divergences and displays them on the chart of the custom AO indicator.

A trading system based on three indicators: two iMAs (Moving Average) and iMACD (Moving Average Convergence/Divergence, MACD).

A trading system based on two indicators: iSAR (Parabolic SAR) and iRSI (Relative Strength Index, RSI). Lot calculation based on the risk value as a percentage of free margin.

The Expert Advisor uses Buy Stop and Sell Stop orders to trade news and large price movements.

Opening positions randomly after a certain time interval.

This non-trading Expert Advisor is designed for the simple trailing of take profit orders of open positions.

A Simple Expert Advisor The EA opens a position of the specified type at the time specified in the EA parameters. The position is closed at the time specified in the appropriate parameter.

Implementation of multiple trailing types. Pending Buy Stop and Sell Stop orders. Limitation of the maximum total lot and the total number of positions. Several types of position volume calculation.

An Expert Advisor, which trades in a channel based on the Percentage_Crossover_Channel indicator.

An Expert Advisor based on the Diff_TF_MA indicator.

ZeroLagMACD is an MACD version, which has a much smaller lag compared to the classic MACD.

Zero Lag is a modified EMA.

WI

The WI oscillator indicator.

VMA

VMA is a volatility based dynamic MA.

Square Weighted Moving Average.

RWI

RWI (Random Walk Index)

Median MA is a moving average, which is calculated using the median price for a given period.

A moving average drawn as candlesticks on a chart.

Logarithmic regression channel.

Kurtosis is an indicator of market sentiment.

The indicator searches for a sequence of candlesticks on a chart and marks bullish and bearish sequences.

The Difference indicator shows the difference between the current prices and prices as of N periods ago.

A polynomial regression channel.

Wilson Relative Price Channel.

Classic MACD based on Adaptive Moving Average.

The Asymmetric Trend Pressure indicator shows the trend direction and strength line. It can additionally show the bullish and bearish components of the trend.

The Advance Trend Pressure oscillator shows the trend direction and strength line. It can additionally show the bullish and bearish components of the trend.

The indicator displays a Moving Average with bullish and bearish areas.

A modification of the "Custom Moving Average" indicator: now the line color can be passed in input parameters.

Increased accuracy of the standard timer.

The ZScore indicator shows relative price deviation from its average value.

Standard RSI on the price chart.

An Alligator based on the VAMA indicator.

A simple Moving Average of volumes.

The indicator shows Simple Moving Averages from two timeframes.

The indicator draws the Keltner channel in the form of a cloud.

An Expert Advisor based on the "Fractals at Close prices" indicator.

1...686970717273747576777879808182...185