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 ContinueMoving Average: 3-Pole Butterworth Filter. The indicator is based on the code of Witold Wozniak.
The script is developed for reversing open positions with fixed Stop Loss and Take Profit values in points from the current price and the volume depending on the reversed position.
Bollinger Bands Width. One of its application methods was described in FOREX Magazine №123 (July 2006) on page 47.
The simplest semaphore indicator having alerts and providing the possibility to send signals to a mailbox.
The script is developed for placing a SellStopLimit order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price and order trigger prices.
The script is developed for placing a BuyStopLimit order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price and order trigger prices.
The script is developed for placing a BuyLimit order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price.
The script is developed for placing a BuyStop order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price.
The script is developed for placing a SellStop order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price.
The script is developed for placing a SellLimit order with fixed actuation levels, Stop Loss and Take Profit levels in points from the current price.
The trend indicator in the form of a colored cloud using volumes in its calculations. Enhanced version of Bears and Bulls indicator. The idea is to reveal the first market impulse and estimate its duration.
ATRNorm is the normalized version of АTR. Tick volume, standard divergence and other parameters can also be used instead of АТR. The indicator represents logical development of the script. ATRNorm has been created to detect flat areas.
The indicator calculates the difference between the period maximum and minimum. The period is specified in the indicator parameters.
The script is developed for selling with fixed Stop Loss and Take Profit values in points from the current price.
The script is developed for buying with fixed Stop Loss and Take Profit values in points from the current price.
The function is used to determine weekends on a server. It will be especially useful to those who use OnTimer() function in their Expert Advisors for events handling.
The Momentum Technical Indicator measures the change of price of a financial instrument over a given time span.