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

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

BullsBearsEyes_Vol indicator with the timeframe selection option available in input parameters

JBrainTrend1 indicator with the timeframe selection option available in the input parameters

JMACandle indicator with the timeframe selection option available in input parameters

JMACandle indicator with two colored channels based on standard deviations from High and Low of the indicator candles

JMACandle_Chl indicator with the timeframe selection option available in input parameters

The function for moving an open position to a breakeven.

The Expert Advisor is based on OHLC and three indicators: iMACD (Moving Average Convergence/Divergence, MACD), iStochastic (Stochastic Oscillator) and iRSI (Relative Strength Index, RSI)

Semaphore signal indicator triggering when the JMACandle candles change their direction.

JMACandleTrend_Signal indicator shows information on the current trend using the values of the JMACandleTrend indicator with a fixed timeframe

JMACandleTrend_x10 shows the direction of JMACandle indicator signals from ten different timeframes from the bar defined in the indicator input parameters

The indicator shows information on the current trends, using the colors of the JMACandleTrend indicator from ten different timeframes

The JMACandleTrend_HTF_Signal indicator shows the trend direction or a signal for performing a trade generated by the Skyscraper_Fix indicator at the chosen bar as a graphic object with colored indication of the trend or the trade direction, generates alerts or sound notifications if there are signals for performing trades or sends push notifications to a smartphone

BullsBearsEyes_Vol indicator with additional averaging of the resulting histogram

RNN

The Expert Advisor based on iRSI (Relative Strength Index, RSI) indicator and a small neural network

The indicator based on three moving averages

Virtual trading environment

MAMy v.3 indicator-based EA

The indicator displays a sloping trend line. Its parameters are set when the indicator is launched by a trader. The trend line defines the signal trigger level. The trend line breakthrough activates signals accompanied by emails and push notifications.

XBullsBearsEyes_Vol indicator shows direction of the histogram bars movement using colored icons on these bars

XBullsBearsEyes_Vol indicator with the timeframe selection option available in input parameters

The indicator displays a horizontal price line. Its parameters are set when the indicator is launched by a trader. The line defines the signal trigger level. Its breakthrough activates signals accompanied by emails and push notifications.

XBullsBearsEyes_Vol_Direct indicator provides alerts, sends email and push notifications at the incoming trading signals

JMACandleTrend indicator with the timeframe selection option available in input parameters

Fan WRSI indicator

ADX Trend indicator

EWO

EWO indicator

InvestorsVsSpeculators indicator

At the specified hour, the Expert Advisor analyzes OHLC of the previous bar and sets pending orders

Investors vs Speculators Delta indicator

Deviation from MA indicator

Deviation from MA oscillator indicator

RSI Divergence indicator

RSI of MA indicator

The indicator paints candles going beyond the Hans_Indicator_x22_Cloud channel expansion.

The trading system based on XBullsBearsEyes_Vol indicator signals

The trading system based on XBullsBearsEyes_Vol_Direct indicator signals

This utility Expert Advisor works with a virtual stop loss and take profit. Trailing positions on the current symbol.

Smoothed Momentum indicator

SuperTrend indicator

TMACD indicator

1...252627282930313233343536373839...183