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 ContinueA utility for closing (reducing the right side of the length) the rectangles, trendlines, or lines with arrows to some bars/candlesticks.
Indicator EMAVFS_channel with the timeframe selection option available in input parameters.
A channel using a non-smooth and steady approximation error, in which the exponential moving average with a variable smoothing factor is used as the midline.
The EA determines the overbought (OB) and oversold (OS) zones, for which it generates trading signals for selling or buying.
A script for showing the swap value on a financial instrument. The texts of positive and negative swaps are shown in different colors.
Trading on indicator Heiken Ashi Smoothed Oscillator. Settings for placing Stop Loss, Take Profit, and Trailing the positions.
Working with pending Buy Limit and Sell Limit orders. Trailing the positions is possible.
The Expert Advisor places pending Buy Stop and Sell Stop orders. If orders execute, the trailing stop is run for the positions.
An assistant Expert Advisor. It moves positions to a breakeven and then enables trailing.
The EA compares the opening prices of the zeroth and the second bar. It moves positions to a breakeven and/or enables trailing.
The EA uses a virtual Take Profit for closing gaining positions. Opening positions with a step. Catch the type of the last position and its price in OnTradeTransaction.
A trading system based on indicator signals Parabolic Stop and Reverse system with the possibility to set a fixed position holding time.
The EA is based on Moving Average.mq5 from standard delivery. Working with OnTradeTransaction to get the price of the last closed position.