Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Accédez à la CodeBase depuis votre terminal MetaTrader 5
Vous n'avez pas trouvé le bon code ? Commandez-le dans la section Freelance
Comment rédiger un Expert Advisor ou un indicateur

Bibliothèque de code source MQL5 pour MetaTrader 5 - 8

icon

Il s'agit de la plus grande bibliothèque de code source gratuite pour les programmes de la plateforme MetaTrader 5. Vous y trouverez des Expert Advisors, des indicateurs techniques, des scripts et des bibliothèques prêts à l'emploi. Utilisez la bibliothèque de codes lors de l'apprentissage du langage MQL5 et développez vos propres applications de trading automatisé basées sur les codes fournis.

Vous pouvez librement télécharger et tester les codes publiés, ainsi que les lancer dans MetaTrader 5. La bibliothèque est également disponible directement depuis la plateforme MetaTrader 5 et l'environnement de développement MetaEditor.

Soumettre votre code

Советник-утилита. Показывает суммарную прибыль за несколько периодов (сумму и в %), количество сделок за несколько периодов. Расчёт по заданному символу и magic number

Fractals based on the iOBV indicator (On Balance Volume, OBV)

Martingale strategy based on custom indicator 'MACD Four Colors 2'

Colored Stochastic smoothed with iMA (Moving Average, MA)

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

Trading strategy based on the custom indicator 'MA on Momentum'

'Momentum' indicator and 'Momentum' indicator smoothed with 'Moving Average

iDeMarker (DeMarker, DeM) indicator smoothed with iMA (Moving Average, MA).

SmoothStep (generalized)

SmoothStep

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.

The indicator compares OHLC prices

Detecting the start of a new bar or candle, in the OnTick() event handler of an expert advisor.

The indicator in the subwindow shows a comparison of High and Low prices

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

Engulfing Pattern Plus One

Version 2. Indicator based on 'Chaikin Oscillator, CHO'. Line intersection of 'CHO' and 'smoothed CHO'

ADXm (experiment)

The EA works on the signals of the custom indicator 'PriceChannel_Signal_v2' ( https://www.mql5.com/en/forum/173249/page132#comment_15924070 )

iCCI (Commodity Channel Index, CCI) indicator as a colored line

Utility for copying transactions from one MT5 account or MT4 account to another MT5 account.

Trading strategy for the custom indicator 'CHO Smoothed EA'

Study of the dependencies of two iMA (Moving Average, MA)

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.

Export the history of transactions on the trading account.

Standard MA + Hull MA + DEMA + TEMA

Very simplified code: intersection of two custom indicators 'MA Other TimeFrame Correct'. There is no Stop Loss, Take Profit or Trailing.

Candle close above/below BB & Envelopes

Strategy based on the signals of the custom indicator 'RSI_MAonRSI_Dual'

from the logistic regression Article, I welcome all the thoughts on how we can build multiple dynamic Logistic Regression

Two indicators iRSI (Relative Strength Index, RSI) smoothed using iMA (Moving Average, MA)

iSAR indicator (Parabolic SAR, SAR) with filled areas between the indicator and the price. On the right side, a rectangle is drawn equal in size to the fill area

The indicator shows 'Daily Change' on the daily timeframe. When the specified limit is reached, plays sounds

'MACD' indicator with the same color scheme as the 'Awesome Oscillator' indicator

123456789101112131415...183