Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
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

Codes sources MQL5 des Expert Advisors pour MetaTrader 5 - 17

icon

Les Expert Advisors analysent les graphiques de prix et effectuent des transactions automatiquement en suivant les règles sous-jacentes. Vous trouverez ici des codes sources MQL5 permettant de résoudre divers problèmes. Vous pouvez sélectionner aussi bien des Expert Advisors simples basés sur le croisement de moyennes mobiles que des Expert Advisors complexes impliquant des algorithmes compliqués de génération de signaux et une protection contre les erreurs de trading.

Vous pouvez télécharger et lancer les Expert Advisors proposés dans MetaTrader 5. Il est recommandé de tester et d'optimiser les robots de trading dans le testeur de stratégie avant de les utiliser. La bibliothèque d'Expert Advisors est également disponible directement depuis la plateforme MetaTrader 5 et l'environnement de développement MetaEditor.

Soumettre votre code

Two identical trading systems based on the change in the ColorJFatl_Digit moving direction for long and short trades, which can be configured in different ways in one Expert Advisor.

A trading system based on the NRTR_ATR_STOP indicator signals with the possibility to set a strict trading time interval.

Works with pending Buy Stop and Sell Stop orders. The EA uses the iMA (Moving Average, MA) indicator with a VERY large period equal to 590.

A strategy based on iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD).

An example of a template for developing automated trading systems.

The expert advisor moves stop loss of position at user-defined breakeven.

Simple Expert Advisor based on the Larry Conners RSI 2 strategy.

The trading system is based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator)

The Expert Advisor checks the direction in which the price has been moving for the last 10 seconds, and opens a position in accordance with the movement. The EA sets Stop Loss and Take Profit.

Works with pending stop orders (Buy Stop and Sell Stop). Monitors spread %.

The EA lock positions.

A trading system based on the Alligator indicator. If possible, the EA moves positions to breakeven and then enables trailing stop.

The Expert Advisor uses the following indicators: Moving Average Convergence/Divergence, MACD; Moving Average, MA; Average Directional Movement Index, ADX. It closes half of the profitable position.

The Expert Advisor trades in a channel. When a flat channel is found or when the market slows down, the EA places a pending order expecting the channel breakout.

A trading system based on the Vortex indicator signals.

A multi-currency Expert Advisor based on the iStochastic (Stochastic Oscillator) indicator signals.

The Expert Advisor trades based on the i-Regr indicator signals.

The МТ45 Expert Advisor is based on the Martingale strategy. It is designed for trading in the МetaТrader 4 and МetaТrader 5 terminals.

The Expert Advisor trades using the signals of the following indicators: iStdDev (two indicators), iMACD, iCCI, iATR. Moving positions to breakeven.

Opening and closing positions at a specified time.

The Expert Advisor sets pending Buy Stop and Sell Stop order at a specified time.

An expert advisor based on the TRIX ARROWS indicator.

The Expert Advisor sets a grid of pending Sell Limit and Buy Limit orders.

The Expert Advisor uses Burg's method for linear prediction.

A trading system based on the Stopreversal indicator signals.

Opening a position opposite to the closed one. Trades are processed in the OnTradeTransaction function.

Candlestick size analysis. The idea of the trading system: candlestick parameters matter after news releases.

Trading based on a random number generator or in one of the following sequences: BUY - SELL - BUY or SELL - BUY - SELL.

This assistant tool sets Stop Loss and Take Profit for all open orders. Symbol settings, position type, Stop Loss and Take Profit are specified in an external file.

The strategy is based on the ZigZag indicator and pending orders.

We open a new position opposite to the previous one. Inputs only contain Stop loss, Take Profit and the minimum lot.

The OzFx system. It uses Accelerator Oscillator and Stochastic Oscillator.

The Price Channel trading system.

A trading system based on the ForceTrend indicator signals.

An Expert Advisor without a single indicator. Uses lot and step increase.

A trading system based on the ColorFisher_m11 indicator signals.

A trading system based on the AFStar indicator signals.

The iMA (Moving Average) indicator based on iCCI (Commodity Channel Index). It is an analogue of Previous Indicator's Data in the terminal.

If a trade is closed by Stop loss, the volume is doubled; if by Take profit the minimum volume is used. OnTradeTransaction is used to determine whether a trade was performed after the activation of Stop loss or Take profit.

Buy a security (open BUY positions) at a lower price, sell (open SELL positions) at a higher price.

1...101112131415161718192021222324...36