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

Bibliothèque de code source MQL4 et MQL5

icon

Vous souhaitez apprendre le langage de programmation MQL5 ou MQL4, mais vous ne savez pas par où commencer ? Divers programmes pour votre terminal MetaTrader sont disponibles ici. Téléchargez et étudiez les exemples de code publiés, développez vos propres indicateurs et Expert Advisors. Publiez vos applications dans la plus grande bibliothèque de codes MQL5 et MQL4, et elles seront disponibles dans chaque terminal MetaTrader et MetaEditor.

Vos exemples de code dans MQL4 et MQL5 seront distribués dans le monde entier, et des milliers de traders entendront parler de vous !

Soumettre votre code

A demonstration on how to modify objects in an indicator without having the source code

Raymond Cloudy Day For EA, a revolutionary trading tool created by Raymond and expertly developed for the MT5 platform. This innovative indicator integrates a cutting-edge calculation method with advanced algorithms, surpassing traditional Pivot Points to enhance trading strategies with unparalleled precision.

main point is changing of MA curve to horizontal line and DPO curve shall represent to distance from close price to zero level or MA curve

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.

Indicator displays the value of defined stop loss and or take profit in the deposit currency. Note: It calculates an estimated value based on a simple calculation and does not take into account brokerage commissions.

This indicator is designed to draw a Fibonacci retracement, using as a basis the ZigZag indicator.

Beginner tutorial on CCI to learn to code in MQL5

Linear Regression Value indicator with an option that allows it to be applied to another indicator

Bollinger Bands with controllable outer band smoothing (post smoothing)

Bollinger Bands with controllable outer band smoothing (pre smoothing)

This code does not trace the iatr() because the iatr() or this code is a more modern version. This code uses original smoothing, a kind of SMA and not wilder smoothing. The analysis of the two smoothings can suggest opportunities elsewhere

The goal is to show a code that shows the calculation of the ATR with Wilder smoothing

Linear regression line with an option to be applied to another indicators

Linear Regression Line

Linear Regression Slope

Linear Regression Value indicator

RSI adaptive indicator based on tick calculations

How to use Metaquotes native smoothing functions in MovingAverages.mqh SimpleMAOnBuffer(), ExponentialMAOnBuffer(), SmoothedMAOnBuffer(), and 2 LinearWeightedMAOnBuffer()

Root Mean Square

This EA is a demonstration of how you can implement your own Hedging strategy with the help of the include file.

Capture widescreen screenshots by pressing the 's' hotkey on the keyboard

This indicator shows you how to use native functions SimpleMA(), ExponentialMA(), SmoothedMA(), LinearWeightedMA which are in the MovingAverages.mqh library in the includes directory

Moving averages are useless. In fact, some argue that the best way to lose money for a beginner are MA-Price crossover strategies. But is it possible to make it work?

This is a lesson on buying or selling with pending orders stop

This is a lesson on trading using price action combined with volume.

Trailing stop tutorial using ATR indicator

This is a lesson on how to: 1. calculate the lot size in each order corresponding to the percentage of balance loss. 2. Trailling and count position buy and sell. The condition buy or sell base on Price action and moving average filter

It will delete all objects on the chart when the compiled executable is dragged onto the chart

Script For Trap News High Impact

Basic library to create Volume Profiles on chart.

This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.

This is a first for MetaTrader 5. Now you can click on the chart to create price alerts.

This is a tutorial on price action trading combined with a moving average filter

This is a guide to trading using the price action method

This is a tutorial on how to confirm double bottom & RSI patterns

This is a lesson on how to create a Bullish - Bearllish reversal trading method based on the Japanese candlestick pattern. Now we will refer to detail introduct about method:

Sample code to count consecutive no. of bull or bear bars.

This EA will scan all the closed trades and then print the nth trade from the end

This EA will scan all the open trades and then print the nth trade from the end

MQL5 version of geometric moving average.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184