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 ContinueAssistant - works on the current symbol, has the 'Trailing activate if profit is >=' parameter in the trailing parameters. Sets the initial Stop Loss and Take Profit. Closes all positions when target profit is reached
Assistant - works on the current symbol, has the 'Trailing activate if profit is >=' parameter in the trailing parameters
Советник-утилита. Показывает суммарную прибыль за несколько периодов (сумму и в %), количество сделок за несколько периодов. Расчёт по заданному символу и magic number
Very simple indicator to plot the values of the spread[] data as reported by the OnCalculate event handler.
The indicator shows the percentage of the 'Close' price above and below the 'iMA' indicator
The color indicator shows in a separate window the moment if the intersection of two iMA (MOving Average, MA) was on the current bar
Have you ever asked yourself why it is not possible to customize fractals more? ... now it is.
The ZigZagExtremaOnArray is an mqh include file which contains the calculation function of MetaQuotes' Examples ZigZag, BUT you can use it on any buffer that contains curves or histograms, similarly to the MovingAverages.mqh from include. The idea was to get highs and lows of an indicator curve quickly with the help of an "onBuffer" function.
Detecting the start of a new bar or candle, in the OnTick() event handler of an expert advisor.
This simple quick & dirty script code will output a CSV file of all the Signals' properties as reported by the MQL5 Trade Signals functionality.
One of the strategies for the 'DeMarker' indicator is a permanent set of positions
Version 2. Indicator based on 'Chaikin Oscillator, CHO'. Line intersection of 'CHO' and 'smoothed CHO'
The EA works on the signals of the custom indicator 'PriceChannel_Signal_v2' ( https://www.mql5.com/en/forum/173249/page132#comment_15924070 )
Utility for copying transactions from one MT5 account or MT4 account to another MT5 account.
Signals (Arrow objects) of iCHO indicator (Chaikin Oscillator, CHO) and smoothed iCHO intersections
An indicator to monitor the appearance (or change) of a rectangle whose name starts with ...
Adds the ability to automatically export the transaction history after running the Expert in the strategy Tester.