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 simple indicator which may help you in manual backtest by just moving a vertical line to show hide bars.

Relative Strength Index that completely removes noise, works on all markets!

Select the last closed deal (trade) to further work.

This EA help you for Auto set the TP & SL by default parameter, Auto trailing stop & step for any order that you place from any device, Easy way to close all orders with 3 Button "Close All" "Close Profit" "Close Lose", Auto close all orders by profit or lose treshold value

It will detect whether there's confluence between the current chart timeframe and two other timeframes.

QuickTradeKeys 123 is a user-friendly Expert Advisor (EA) for MetaTrader 5, enabling traders to execute buy and sell operations quickly by simply pressing the numbers '1' and '2' on their keyboard. Pressing '3' closes all open positions. This EA is ideal for swift trading and testing purposes where manual intervention is required without using the mouse.

A simple yet effective donchian channel breakout strategy. This strategy is timeless!

Here are some examples of codes for set counters based on "Count"

This is a basic library to create and manage grids.

If you only want to execute your code blocks "only once per bar" it's important to check if there is new bar arrived or not.

This script helps traders understand the distribution and range of candles in a specific period, which can be useful for making trading decisions such as determining which historical values to use for Take Profit or Stop Loss.

Counter attack candlestick pattern

Dominant Candle is a a two candlestick set where the wicks intersect each other but body of the candles are either gapped up, gapped down or equal

This code block loops through all opened position and do trailing based on Ask and Bid prices.

This code block detects a New Bar or a New Candle when it has received.

Logarithmic Moving Average continuously calculates the logarithmic mean of highest price and lowest price within a period.

MQL5 version of harmonic moving average

The indicator draws an arbitrary second time frame on the chart.

Highlights the Forex Market Sessions (Sydney, Tokyo, London, New York).

Indicator based on basic slope moving average and cloud around. Indicator shows two types of signals: prepearing - dot and entry - arrow.

Script to determine whether your Broker follows the US, UK or AU daylight (DST) schedule.

Searches for Wick or Body based High low in visible bars of chart

A simple observatory of individual currencies.

Le livre "Réseaux neuronaux pour le trading algorithmique avec MQL5" est un guide complet, couvrant à la fois les fondements théoriques de l'intelligence artificielle et des réseaux neuronaux et les aspects pratiques de leur application dans le trading financier en utilisant le langage de programmation MQL5.

Now we will get the code with function and purpose as below: 1. How to call and using the bollinger band 2. How to call and using the volume tick 3. How to call and using the Moving average volume. 4. How to code using the Trailling & Check volume lot size

Class to access to the local time for the specified location, as well as time zone information and the local trading session hours.

it is an Indicator of Donchain chanel price action work with to all time frame.

Short description.

easydatabase

The source codes written during the development of the library for creating multi-currency Expert Advisors that combine many instances of various trading strategies.

Static class to fix the TimeGMT() function during testing in the strategy tester.

This is a script to export rates and ticks of current chart's symbol into CSV-files compatible with MT5's export/import format.

KA-Gold Bot is an advanced trading advisor specifically designed for gold, utilizing the powerful combination of the Keltner channel strategy and two exponential moving averages (EMAs) - the 10-period EMA and the 200-period EMA. Principle of Operation: The 10-period EMA represents the average price cutting above/below the Keltner band, confirming an uptrend/downtrend. The price being above the 200-period EMA supports the uptrend/downtrend. This indicates that the uptrend/downtrend has been stronger than the previous 10 periods, considering the volatility over the last 50 periods. - Time frame: M15

SAR ADX Signal with mobile notification, rewritten from MT4 version (source no longer found). This is a repaintable indicator, please be careful when using it.

Historical Strong S/Rs Levels

The EA only trades buy positions and does not use SL and TP.

Hides Alone Candlesticks

Fair Value gaps are used in ICT's smart money concept where there is an imbalanace of 1 point or more between 1st candle's high and 3rd candle 's low in bullish and 1st candle 's low and 3rd candle's high in bearish

While manually adjusting the stop-loss of a single trade to match its open price is a relatively simple task, managing numerous positions individually can be cumbersome and time-intensive. The Titik Impas Breakeven script for MT4/MT5 streamlines this process, providing efficiency and convenience for traders dealing with multiple positions.

This is an indicator to calculate ATR Weighted moving averages.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183