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

Les meilleurs codes sources MQL4 et MQL5 selon les notes des utilisateurs - 105

Soumettre votre code

The Expert Advisor is based on Puria method with a few changes. It uses two iMA (Moving Average, MA) indicators and one iMACD (Moving Average Convergence/Divergence, MACD).

Trading signals are generated based on a comparison of two trend indicators: iMA (Moving Average, MA) and iSAR (Parabolic SAR). The EA works on the zero bar, only one position can be open. Trailing stop is used.

The indicator marks on a price chart candlesticks, which are larger than the specified size. If the candlestick size exceeds the value specified in the indicator parameters, the indicator can show an alert message.

Instead of being in a hurry to follow the price with the stop loss, this indicator is adjusting a proposed stop loss only when it notices a trend change in the opposite direction. That way, it keeps the level intact while trending, and adjusts it when it "sees" that there is a possible trend change) and gives bigger "room" for an order to survive possible whipsaws in trends. Also, since it is estimating a trend, this indicator displays the periods when there is a trend in different color(s) in order to make it easier to decided what to do.

This indicator is a MetaTrader 5 version of nonlinear regression. Nonlinear regression is very "fast" when responding to sudden market changes so the default calculation period is set to somewhat longer period than it is usual for similar type indicator. Because of that some experimenting with period is advised based on your trading strategy and trading style.

Linear regression line with an addition of standard error channel projection.

An Expert Advisor based on indicator Renko Level

Increasing a position volume. Entry signal by iDeMarker (DeMarker, DeM) indicator. Regular trailing and trailing by equity.

Grid of Stop and Limit pending orders.

Classic Donchian Channel indicator

Zero Lag RSI indicator

TRIX candles

The Expert Advisor based on the BullsBearsEyesindicator custom indicator

Working with pending Buy stop and Sell stop orders. Martingale.

Indicator RSI Rendiment

The EA uses two indicators iMA (Moving Average, MA), Fast and Slow, and one indicator iBands (Bollinger Bands, BB).

Normalized MACD of averages

This code snippet implements a dynamic risk management strategy for existing trades. It focuses on closing trades based on profit or loss thresholds and employs a trailing stop loss to lock in profits as the trade moves favorably. The strategy helps manage risk and enhance profitability in a streamlined manner.

Bougie actuelle à fermer dans x temps

Moyenne mobile adaptative MESA (MAMA).

L'indicateur Autotrendlinien construit un canal dans la direction de la tendance actuelle.

Script simple pour randomiser toutes les couleurs de votre graphique. Cliquez simplement dessus et voyez les résultats par vous-même !

L'indicateur i_Sampler calcule les entrées idéales, il est conçu pour l'entraînement des réseaux neuronaux.

Construire l'indicateur "Crosses et Actions" sous forme de barres dans une fenêtre séparée.

Un simple indicateur sémaphore avec des alertes et la possibilité d'envoyer des signaux à une boîte aux lettres.

Recherche d'extrema sur une section donnée de l'histoire.

Expert Advisor based on three moving averages and exit using Stop Loss or Take Profit. It sets up an entry with the trend.

The simplest script to send instant PUSH-notifications to smartphone

Trading system using the AsimmetricStochNR indicator.

This script attempts to demonstrate the power of using support vector machines in solving classification style problems.

This indicator uses support vector machines to analyse indicator data and signal future trades. Buy trades are signalled by a green ‘up’ arrow with sell trades signalled by a red ‘down’ arrow.

The Expert Advisor to perform global Stop Loss on all open positions

The indicator which displays the beginning and the end of the trend

The indicator of the minimum sum of price changes which forms signals after flat movements and before potential breakthrough in this or that side

The script demonstrates the example of using the FileWriteArray() function

The indicator of patterns. It is based on the smoothed Commodity Channel Index and Bollinger Bands.

The NRTR trend indicator that sends alerts and Push messages

A simple script that allows you to open a long position using the current price location with a specified Risk Percentage and Reward Ratio.

This indicator is useful for correlation analysis and also for cross pair analysis.

Stochastic Oscillator (based on Stochastic Momentum) from the book "Momentum, direction and divergence" by William Blau, implemented in the form of a color histogram with a signal line implemented as a colored cloud.

1...9899100101102103104105106107108109110111112...196