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 ContinueThis script will export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. Current version 1.0 does not add the takeprofit and stoploss. Any advice to improve this is welcomed.
Export history of deals from MT5 retail hedging account selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software.
Double smoothed EMA - floating levels (multi time frame)
Expert Advisor Exp_SpearmanRankCorrelation_Histogram with the added option of trading within the weekly range only, the borders of which are specified in the EA's input settings
The indicator builds graphical object Fibonacci Levels with many settings at High and Low prices over the period specified in the indicator input parameters
A trading system with a very simple neural network unit. It uses an iMA (Moving Average, MA) on H1, H4, and D1.
The script builds the Fibonacci Levels graphical object with the option of selecting the number of its segments
Indicator CandlesAutoFibo_Grand with the option of changing the number of segments in the graphical object of Fibo levels using one input parameter
An Expert Advisor based on indicators iADX (Average Directional Movement Index, ADX) and iMACD (Moving Average Convergence/Divergence, MACD)
A script for automatically drawing the levels of the intraday High/Low on the FORTS trading session. There is also an option to draw the levels of the night High/Low prices (if the latter ones are beyond the intraday ones)
The market maker robot for trading futures and swap cryptocurrency contracts
Indicator CandlesAutoFibo with a wider range of settings to display Fibo levels.
Displaying the latest closed values of indicator Bollinger Bands® with colored rectangles and background filling
The EA uses two indicators iMA (Moving Average, MA), Fast and Slow, and one indicator iBands (Bollinger Bands, BB).
The HLCrossSigForDeMarker is considered as a trend indicator since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional effects from trading.
Indicator XXDPO_Candle_Alerts with the timeframe selection option in its input parameters
Indicator XXDPO_Candle can provide alerts and send email and push notifications when trading signals occur. Possible signal options
The EA compares the difference between the Close price of bar #1 and the Close price of bar #Candle shift.