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

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

The Expert Advisor trades using the signals of the following indicators: iStdDev (two indicators), iMACD, iCCI, iATR. Moving positions to breakeven.

Opening and closing positions at a specified time.

The Expert Advisor sets pending Buy Stop and Sell Stop order at a specified time.

An expert advisor based on the TRIX ARROWS indicator.

The Triple Exponential Average (TRIX) indicator + the signal line + arrows at the intersection of the signal and the main lines.

The Expert Advisor sets a grid of pending Sell Limit and Buy Limit orders.

The Expert Advisor uses Burg's method for linear prediction.

The scripts places multiple pending orders lower than the current price.

The scripts places multiple pending orders higher than the current price.

The 'History Deals and Orders' script shows absolutely all properties of deals and orders from the trading history over a given time interval.

A library for reading/writing the parameters of arbitrary Expert Advisors.

The Psychological indicator implemented as a color histogram, featuring alerts, push and email notifications.

This is an implementation of the market cycle indicator described by Raghee Horner.

A trading system based on the Stopreversal indicator signals.

The indicator implements a breakout system using the Zigzag2_R_channel indicator channel, as well as generates alerts, sends push and email notifications when the price breaks the channel drawn through the zigzag peaks.

The indicator shows a text block with the values ​​of the user defined RSI period for each timeframe.

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

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

A semaphore signal indicator based on crossovers of the Di Plus and Di Minus lines of the ADX_Smoothed indicator.

A semaphore signal indicator.

A classic oscillator imported from the FXAccuCharts platform.

HTML file converter for the economic calendar. The script parses a page downloaded from http://www.investing.com/economic-calendar, and forms a CSV file with the list of news.

Opening a position opposite to the closed one. Trades are processed in the OnTradeTransaction function.

Candlestick size analysis. The idea of the trading system: candlestick parameters matter after news releases.

Trading based on a random number generator or in one of the following sequences: BUY - SELL - BUY or SELL - BUY - SELL.

The Derivative indicator implemented as a colored histogram with an additional averaging.

The indicator shows a text block with the values ​​of the user defined Volatility period for each timeframe.

This assistant tool sets Stop Loss and Take Profit for all open orders. Symbol settings, position type, Stop Loss and Take Profit are specified in an external file.

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

The strategy is based on the ZigZag indicator and pending orders.

A library for working with traditional and custom symbols

The indicator shows a text block with the values ​​of the user defined ATR period for each timeframe.

Another version of Bollinger Bands using as the middle line the average of the High and Low over a selected period.

We open a new position opposite to the previous one. Inputs only contain Stop loss, Take Profit and the minimum lot.

The OzFx system. It uses Accelerator Oscillator and Stochastic Oscillator.

The Price Channel trading system.

The indicator implements a breakout system using the Mikahekin indicator channel.

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

A trading system based on the ForceTrend indicator signals.

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

1...747576777879808182838485868788...185