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 - 92

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

The Expert Advisor is based on the following indicators: RSI, WPR, Stochastic, Moving Average, deMarker

The TriX indicator in a candlestick form with the Keltner channel calculated relative to TriX averaging.

Modification of StopLoss of any positions. Trailing. Trailing.

Opens a SELL position on each bar, if Close of the 1st bar > Close of the 3rd bar. Opens a BUY position on each bar, if Close of the 3rd bar > Close of the 1st bar.

10 pips per day opposite to the "yesterday's trend".

A library of averaging algorithms, the algorithms were described in details in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers"

A simple trend indicator of the oscillator type.

Libraries for the interaction of МТ4/5 with R

The Expert Advisor trades by two iMA (Moving Average, MA) indicators. Trailing Stop. TrailingStop

The Expert Advisor uses the following indicators: Ichimoku, MA, SAR. Optimized for currency pairs: GBPUSD and EURUSD with the M30 timeframe. The full description is available in the code.

The Objective indicator with the timeframe selection option available in input parameters.

The RSI indicator in a candlestick form with the Keltner channel calculated relative to RSI averaging.

The Exp_TDI-2_ReOpen trading system based on the intersection of TDI-2 indicator lines, with adding to trend-following positions.

Semaphore signal indicator based on the price action strategy looking for the strongest intraday trend, which can notify about trend change by generating an alert, sending an email or a push notification to a mobile device.

The class allows to easily determine from your MQL5 programs any changes in the Market Watch window (change of symbol sorting, adding, deleting a symbol or a set of symbols), as well as opening and closure of charts, and the availability of the one click trading option on the current chart, on which the program is running.

SilverTrend v3 - trading based on the analysis of the High, Low and Close prices of bars.

The New Martin Expert Advisor opens two opposite positions upon start. OnTradeTransaction handling. When Take Profit triggers, it opens a position (one position) in the same direction. The intersection of two MA indicators is a signal to open a position of a larger lot.

The TDI-2 indicator with the timeframe selection option available in input parameters.

The NRTR_Gator indicator with the timeframe selection option available in the input parameters.

The simplest EA based on the Fractal_WeightOscillator weighted oscillator.

The MARE5.1 Expert Advisor is very easy to use. It uses the values of two Moving Averages (SMA) at the close of 0th, 2nd and 5th bar. The EA is configured to work on the M1 timeframe.

A histogram of minimum and maximum values of the following parameters: SYMBOL_SESSION_BUY_ORDERS_VOLUME - "Total current volume of buy orders" and SYMBOL_SESSION_SELL_ORDERS_VOLUME - "Total current volume of sell orders".

The indicator shows t he parameter "Total volume of open positions - SYMBOL_SESSION_INTEREST".

Trading on a new bar only. The rules are simple: if MAIN_LINE MACD (1) > MAIN_LINE MACD (2) -> Buy, if MAIN_LINE MACD (1) < MAIN_LINE MACD (2) -> Sell". When a signal opposite to open positions is received, close all positions.

The Expert Advisor uses the MACD, OsMA and WPR indicators. The Expert Advisor is configured to trade on the D1 timeframe with USDCHF, GBPUSD, USDJPY and EURUSD

The Fractal_TRIX indicator with the timeframe selection option available in the input parameters.

The SnakeInBorders indicator with the timeframe selection option available in the input parameters.

The Expert Advisor synchronizes the local computer time in the interval from 9:50 to 9:59 (before the beginning of the morning session) with the MetaTrader 5 FORTS server time.

The Linear_Price_Bar indicator with the timeframe selection option available in the input parameters.

The indicator draws i-OneThird indicator candlesticks of a higher timeframe as color filled rectangles using DRAW_FILLING buffers.

The strategy is based on Moving Averages with the periods of 5/20/40/60.

The XprofuterDD indicator with the timeframe selection option available in the input parameters.

The indicator is derived from the NRTR indicator.

Trading based on the Bollinger Bands indicator. Chart time-frame — M30 and higher.

The Expert Advisor identifies trend based on three moving averages (with periods of 200, 50, 25 or other custom periods), and opens trades using the Parabolic SAR indicator. The EA uses martingale techniques, lot is calculated as percent of deposit depending on stop loss.

A fractal TRIX.

SnakeInBorders calculates the channel of a filtered market, which is limited by two borders BorderTop[] and BorderBot[], and it calculates the signal Mart[].

The XMA-XN indicator with the timeframe selection option available in the input parameters.

MACD based Expert Advisor

The Expert Advisor has been created using the MQL5 Wizard, on the basis of MACD (Moving Average Convergence/Divergence) signals and the Parabolic SAR trend indicator.

1...858687888990919293949596979899...183