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

All information about the current symbol (information from the CSymbolInfo class object is used) represented as a dialog panel.

A trading strategy based on RSI and Bollinger Bands.

An Expert Advisor for 4 currency pairs, including EURUSD, GBPUSD, USDCHF and USDJPY. It is based on four-hour moving averages.

Analyzes bars whose opening time (hour and minute) is equal to the current bar opening time.

This is a trend trading system based on the signals of two Kolier_SuperTrend indicators.

Shows an appropriate value for the last three bars on each timeframe: "1" if the bar is bullish, and "0" if the bar is bearish.

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

1...121314151617181920212223242526...36