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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Enable two-factor authentication ContinueThe function that calculates the lot size depending on the amount of money in the deposit currency being used.
The function that decrypts the code of the trade operation result for the functions OrderSend() and OrderCheck().
Two-Line MACD. This indicator is available by default in a great deal of trading platforms. But it cannot be found in Metatrader 5.
This indicator calculates last average price for a symbol and determines the trend direction, so it can be a signal to commit a trade operation.
This is a simple but very fast ZigZag with no suspended or wrong peaks. The indicator is designed for use in EAs. Peaks retrieval has been time-optimized.
Inspired by Pirat's Expert Advisor submitted to the Automated Trading Championship 2011.
This Expert Advisor illustrates the usage of the IndicatorParameters() function to get the information about the number of input parameters, their type and values.
Corrected Average indicator by A.Uhl (also known as the "Optimal moving average").
A simple script for switching basic timeframes. It allows to change a chart period using hot keys.
Introducing the example of visualization of optimization results in real time (balance curve dynamics and an Expert Advisor statistical parameters).
The indicator calculates perfect market entry signals, which can be used for neural network training.
The indicator shows the size of Highs and Lows and their values over the specified period.
This class contains functions for working with colors. It has color conversion and other useful functions.
This is the improved version of Price Channel indicator. Two additional price levels, trade signals and Stop Loss/Take Profit levels were added.
Classic Pivot Point indicator paints pivot point and three resistance and support levels for all data points.
The indicator calculates the resistance and support lines and shows alerts when price is reached them.
The indicator creates a channel and provides the possibility to configure it with automatic tuning.
The indicator shows the use of the free Library for Custom Chart library for the automatic connection of the indicators to iCustomChart custom charts created on the basis of custom history files.
The Expert Advisor shows the use of the free LibCustomChart library for the automatic connection of the Expert Advisors and indicators to iCustomChart custom charts created on the basis of custom history files.
Simple script to randomize all colors of your chart. Just click on it and see results yourself!
The library that contains various statistical functions including the calculation of an average value, variance, asymmetry, excess, covariation, correlation etc.
Enables the "Chart Objects Description" for non-programmers. For any open chart window.