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

Codes sources MQL5 des Expert Advisors pour MetaTrader 5 - 19

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

The Exp_XFatlXSatlCloud trading system is based on change of the trend direction displayed by the XFatlXSatlCloud indicator

The Expert Advisor moves trailing stops of all positions on the current symbol.

Plays a sound when position is closed.

Trading based on preset candlestick combinations (patterns) Candlesticks are marked as "1" (bullish) and "0" (bearish). TakeProfit, StopLoss

The Expert Advisor calculates the maximum lot size that can be used to open a position using the entire free margin available on the deposit.

The Exp_Stochastic_Chaikins_Volatility Expert Advisor based on the Stochastic_Chaikins_Volatility indicator color change.

A semi-automated Expert Advisor which signals of breakouts of specified horizontal levels.

The EA searches for N identical candlesticks in a row. If the found candlesticks are bullish, it buys. I they are bearish, the EA sells.

The Expert Advisor trades inside a channel, reversing positions at the channel borders.

Trades based on the previous candlestick.

A list of all positions. An example of working with CPositionInfo.

The Expert Advisor is based on the indicator with the same name. Lot is calculated based on the risk value as a percentage of free margin.

The Expert Advisor closes all positions opened on the account, if the current server time has exceeded the time limit specified in the input variables.

The Expert Advisor closes all the current symbol positions opened on the account, if the current server time has exceeded the time limit specified in the input variables.

Hedge The Hedge Trader EA.

We look for N identical candles in a row. If the found candles bull - we buy, if bear - we sell.

Advisor on the signals of the indicators Bollinger Bands and Moving Average.

Strategy: N bars up and one bar down. Trailing. Lot calculation based on the risk value as a percentage of free margin.

Intraday volatility breakthrough system. The Parabolic SAR indicator is used.

A trade strategy based on the RSI indicator. Checks if there is enough money before opening a position.

A trading system using the SSL indicator.

The EA uses two Moving Averages, one MACD and one CCI. OnTradeTransaction is used to receive position opening time.

Averaging of values (RSI) using MovingAverages.mqh. Two MA indicators.

An Expert Advisor based on the "RPoint" indicator. The chart layout in X-points reversal. A high-quality ZigZag based on HiLo.

The "Nevalyashka" Expert Advisor.

The implementation of the MACD pattern "Trend continuation".

A multi-currency Expert Advisor that opens a market position at the user defined time.

The Expert Advisor trades based on the ADX Wilder and Ichimoku Kinko Hyo indicators. Lot is calculated based on risk percentage of margin.

Trailing, pending orders. Signals of two indicators (Moving Average, MA). Trades only during a certain period of the day.

Trade direction is chosen based on a random number generator. Stop Loss and Take Profit are set based on the random number generator. Lot calculation based on the risk value as a percentage of free margin. The code contains protection against the "not enough money" error.

EMA

Intersection of two Moving Averages. Take Profit and Stop Loss levels are virtual.

Trading system based on the signals of the ICHI_OSC indicator

Lot calculation based on the risk value as a percentage of free margin.

Trading system based on the signals of the ThreeCandles indicator

The Exp_IBS_RSI_CCI_v4_X2 trend-following trading system is based on the signals of two IBS_RSI_CCI_v4 indicators.

The Exp_XOSignal_ReOpen trading system based on the signals of the XOSignal indicator with trend following scaling

The Exp_CGOscillator_X2 trend trading system based on the signals from two CGOscillator indicators.

The Exp_ttm-trend_ReOpen trading system based on the signals of the ttm-trend indicator with trend following scaling.

Crossing of the two iMAs. Lot calculation based on the risk value as a percentage of margin.

The Exp_ChandelExitSign_ReOpen trading system based on the signals of the ChandelExitSign indicator with trend following scaling.

1...121314151617181920212223242526...36