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

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

An example for calculating the lot value with a fixed margin level. That is, if you specify 10%, a position with the margin equal to 10% of free margin will be opened.

The Expert Advisor places two pending orders at a certain time.

A tick Expert Advisor. It compares the price on the previous tick and the current price.

Comparing open prices of the zero and third bar.

The EA works based on the analysis of Open, High and Low.

An example of an Expert Advisor with a Trailing Stop implementation.

The EA places pending stop orders BUY_STOP and SELL_STOP.

The Expert Advisor places two pending orders (BuyStop and SellStop) with the specified expiration.

The Expert Advisor uses the values of two iMA (Moving Average, MA) indicators.

Uses two iStochastic (Stochastic Oscillator) indicators and one iRSI (RSI, Relative Strength Index). Calculates the lot size based on the analysis of closed trades.

The Expert Advisor searches for the momentum: iClose(t2)-iClose(t1).

The Expert Advisor opens or closes positions at the intersection of lines.

The Expert Advisor uses Parabolic SAR and three EMAs (with the periods of 10, 25 and 50).

Four trading strategies in one Expert Advisor.

The Expert Advisor plays sound alerts when candlestick size exceeds a certain value.

An example for calculating the lot value in accordance with the risk per trade.

The Expert Advisor trades moving average breakouts. It uses the following indicators: two iMAs (Moving Average, MA), iRSI(Relative Strength Index, RSI) and two iEnvelopes (Envelopes).

Trades using indicators: iStochastic (Stochastic Oscillator) and iRSI (Relative Strength Index, RSI).

The creation of the Expert Advisor stems from the topic "Neural networks - where to start studying them".

The Expert Advisor uses the iBullsPower (Bulls Power) indicator.

The Expert Advisor uses the iDeMarker (DeMarker, DeM) and iStochastic (Stochastic Oscillator) indicators. Three virtual levels to protect profit.

The Expert Advisor trades the High and Low breakouts of the previous day.

Pipsing Expert Advisor. It works based on the iChaikin (Chaikin Oscillator) and iMA (Moving Average, MA) indicators.

The Expert Advisor searches for movements without rollbacks (analysis of ticks).

Alligator - Expert Advisor for MetaTrader 5. Trading based on indicators: iAlligator (Alligator), iFractals (Fractals). Martingale.

Straddle&Trail - Expert Advisor for MetaTrader 5.

MTC Neural network plus MACD - Expert Advisor for MetaTrader 5.

MacdPatternTraderAll - Expert Advisor for MetaTrader 5. Six (iMACD, MACD, Moving Average Convergence/Divergence) indicators and four (iMA, MA, Moving Average) indicators. Opens trades when the indicator's MACD crosses its signal line.

Expert Advisor inspired by Ilan 1.6. It uses the iCCI(CCI, Commodity Channel Index), iRSI(RSI, Relative Strength Index) indicators.

The simplest EA based on the fractal MFI.

Trading based on two indicators: iAlligator (Alligator).

Works based on two indicators: iCCI (Commodity Channel Index, CCI) and iMACD (Moving Average Convergence/Divergence, MACD). OnTradeTransaction().

Trading based on the ZeroLag MACD custom indicator.

The Expert Advisor based on the iAlligator (Alligator), iMA (Moving Average) indicators.

The Expert Advisor works in martingale mode based on the signals of iStochastic (Stochastic Oscillator).

The Expert Advisor uses signals from the indicators: ATR, MACD.

Increasing the lot after a losing trade. Entry signals are based on the DeMarker indicator.

The simplest EA based on the WeightOscillator weighted oscillator.

Ilan1.4 - Expert Advisor for MetaTrader 5.

The Exp_SilverTrend_Signal_ReOpen trading system based on the signals of the SilverTrend_Signal indicator with scaling by the trend.

1...141516171819202122232425262728...36