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

Soumettre votre code

iCrosshairClickTarget indicator for MetaTrader 5 is an improved version of iCrosshair indicator for MetaTrader 4.

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

The WATR_HTF_Signal indicator shows a trend direction or a trade signal generated by the WATR indicator at the chosen bar as a graphical object with colored trend indication or deal direction. It also triggers alerts and plays audio signals.

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

The PercentageCrossover indicator with the timeframe selection option available in the indicator input parameters.

The class monitors the emergence of a candlestick

A trading system based on the Omni_Trend indicator signals.

The indicator allows displaying on a chart eight Moving Averages with the same averaging methods and calculation prices, but with different periods.

An indicator based on Elder's "Safe Zone".

LRL

Linear regression line (LSMA) - a moving average calculated by the linear regression method.

An indicator of important extremums.

This EA uses indicators iCCI (Commodity Channel Index, CCI), ZigZag, and Impulse. Position trailing is possible.

A trading system based on the KWAN_CCC indicator signals.

Indicator PCaudateXPeriodCandleRange with the timeframe selection option available in its input parameters.

CRF

Indicator CRF (Cumulative Rotation Factor) displays the states of the market: Uptrends/downtrends/consolidation.

The SilverTrend indicator with the ability to change the indicator timeframe using the input parameters.

Trend direction and force

Flat/trend indicator.

Extreme TMA Line indicator

Generalized double DEMA

ATRStops_v1 indicator in the candle form

Ehler's Center of Gravity indicator

Trend intensity index

Adaptive Moving Average - AMA - as described by Vitali Apirine

This is a working singleton code example. The sole purpose of this post is to provide a working code sample of a singleton object. A singleton object is created when there 'can be only one' of the object. This is accomplished by making an object's constructor private, and ensuring assignment and copy operations are also private. I was working on an EA and identified that an object should never have more than one copy. I don't expect the EA to ever get large enough for it to actually matter that a singleton is used, but I like the clarity in the code for the object's type. The code follows closely the tutorial at http://www.yolinux.com/TUTORIALS/C++Singleton.html.

Ichimoku beginner tutorial to learn how to code in MQL5

This Indicator creates automatically a Risk/Reward Box on you all opened chart base on High, Low price with the old candles. You can use it easily to drag and change size and price to your desire wanted.

L'indicateur Demarker (DeM) est basé sur la comparaison du maximum de la période avec le maximum de la période précédente. Lorsque l'indicateur tombe en dessous de 30, il faut s'attendre à un renversement haussier des prix. Lorsque l'indicateur dépasse 70, il faut s'attendre à un renversement baissier des prix.

L'indicateur met en évidence les barres qui suivent la barre de renversement.

Indicateur Heiken Ashi, basé non pas sur les prix réels, mais sur les relevés de la moyenne adaptative appliquée aux prix de l'ouverture, du sommet, du bas et de la clôture.

The indicator shows deals history on the chart.

Les signaux de trading basés sur le modèle de chandelier "3 Black Crows/3 White Soldiers", confirmé par l'indicateur Commodity Channel Index (CCI) sont pris en compte. Le code de l'Expert Advisor basé sur cette stratégie peut être généré automatiquement à l'aide de l'Assistant MQL5.

Les signaux de trading basés sur le modèle de chandelier "Hammer/Hanging Man", confirmés par l'indicateur stochastique, sont pris en compte. Le code de l'Expert Advisor basé sur cette stratégie peut être généré automatiquement à l'aide de l'Assistant MQL5.

Le style de dessin DRAW_COLOR_LINE est utilisé pour tracer des lignes avec des couleurs différentes, les couleurs sont spécifiées dans le tampon de couleurs.

BrainTrend2Sig is an indicator of the market trends that assigns colors to candlesticks according to the trend direction.

RSI indicator applied to MACD clearly shows the current price divergence.

Simple but demonstrative trend indicator.

Relative Vigor Index that allows to select RVI and the signal line smoothing algorithms.

Four-colored histogram of OsMA (Moving Average of Oscillator) allowing to implement different smoothing algorithms.

Mikahekin can be called a complete analytical block rather than just an indicator. The color of bars shows a trend direction and their height indicates a trend power. Blue and magenta dots show trailing-stop levels for long and short positions, respectively.

1...181920212223242526272829303132...190