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 ContinueZero mean normalized nonlinear Kalman filter - with floating levels
This is a working singleton code example. The sole purpose of this post is to provide a working code sample of a singleton object. A singleton object is created when there 'can be only one' of the object. This is accomplished by making an object's constructor private, and ensuring assignment and copy operations are also private. I was working on an EA and identified that an object should never have more than one copy. I don't expect the EA to ever get large enough for it to actually matter that a singleton is used, but I like the clarity in the code for the object's type. The code follows closely the tutorial at http://www.yolinux.com/TUTORIALS/C++Singleton.html.
The AutoFibAutoTrend indicator, in which you can change colors and the values of horizontal Fibo levels.
Two identical trading systems (for long and short deals) based on the ColorMaRsi-Trigger indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system.
The ColorRSI_X20 indicator with the possibility to change the calculation timeframe using the indicator input parameters
The ColorMFI_X20 indicator with the possibility to change the calculation timeframe using the indicator input parameters
The XFisher_org_v1_Vol_Supr_Zer indicator with the possibility to change the indicator timeframe using input parameters
The indicator builds Fibonacci levels at candlesticks High and Low, based on the timeframe specified in the indicator parameters
The ColorMFI_X20 indicator featuring background filling in overbought/oversold areas
Twenty MFI indicators displayed in one window. Each line can be colored depending on its position relative to overbought and oversold areas
The trading system based on SpearmanRankCorrelation_Histogram indicator signals
The VTS_Float_Pivot_Smoothed indicator with the ability to change the indicator timeframe using input parameters
The Expert Advisor operates using pending Buy limit and Sell limit orders. It uses High and Low of the D1 timeframe (bars #1 and #2)
An Expert Advisor based on two iMA (Moving Average, MA) and iRSI (Relative Strength Index, RSI)
The Heiken_Ashi_Smoothed_VolatilityStep_Alert indicator with the ability to highlight trading time zones, selected in the indicator input parameters. Such zones are shown in a different histogram color
The XFisher_org_v1_Vol_Supr indicator with additional signals displayed as round dots, which indicate zero line breakout by the indicator line