Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
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 - 3

Soumettre votre code

A zigzag based on the trend change of the parabolic sar

A logger with the ability to log specific modules or code sections

Stochastic beginner tutorial to learn how to code in MQL5

Alligator beginner tutorial to learn how to code in MQL5

This is an indicator with a rainbow-like display, both for trend or pullback prediction.

MQL5 version of harmonic moving average

Un oscillateur de volume est un indicateur d'analyse technique utile qui prédit la force ou la faiblesse des tendances de prix.

Volatility Stop - indicateur des niveaux de stop par volatilité

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

MovingAverages.mqh Part II A multi timeframe version is available with colors for orientation, for developers or profitable traders for free. Offer under conditions. Other multi timeframe indicators are also available.

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

This script saves all the OHLCV data available on the chart to a CSV file.

Symbol Swap Panel: Effortlessly switch the active symbol on your chart while simultaneously adding the new symbol to Market Watch. This tool ensures seamless integration and access to real-time market data, optimizing your trading workflow.

Better Volume est un indicateur avancé conçu pour analyser le comportement du volume sur les graphiques de prix. Il combine les informations sur le volume avec des mesures telles que la portée des chandeliers et les moyennes mobiles afin d'identifier des modèles importants sur le marché, tels que les climax d'achat/vente, les churn et les bougies faibles. Grâce à son interface visuelle dynamique et à la catégorisation des volumes, l'indicateur offre des informations précieuses aux traders qui souhaitent prendre des décisions éclairées sur la base des flux de volumes.

Dans la partie 6 de la "Programmation MQL5 pour les traders", nous étudierons un élément clé du langage MQL5 : l'automatisation du trading. Nous commencerons par une description des entités fondamentales, telles que les spécifications des instruments financiers et les paramètres du compte de trading. Il s'agit de conditions préalables à la création d’Expert Advisors fonctionnant correctement.

The default CCI in MT5 doesn't have the shift parameter. This script implements the shift.

Horizontal Grid Controller with KeyEvents

Indicateur Chande Kroll Stop - niveaux d'arrêt pour les positions courtes et longues.

Perfect Seconds chart indicator allows you to convert minute candles of live data into seconds. 1. Choose any number of seconds to close a bar with accurate time. 2. This is Live OHLC rates based data, It works even if ticks are not available. 3. No external DLL required, it works smoothly on VPS 4. Fast and optimized code 5. Supports Crypto Pairs such as BInance, Kucoin and all other exchanges where Futures live chart can be converted into seconds easily. 6. Support all type of symbols such as Gold and Forex pairs. 7. Options to delete symbol and rates.

Monitoring of memory leaks in the strategy tester

This function allows you to retrieve and return the filling policy of a symbol in MetaTrader 5. This is useful for making trading decisions based on the filling policy of a specific financial instrument.

This is an edit of the Mod_ATR_Trailing_Stop by MQL5 user @Scriptor found here https://www.mql5.com/en/code/20423 . MT5 indicator .mql5 and .ex5 files, report any bugs, I'll fix.

Multi_BreakEven is a script file that enables setting multiple entry positions to breakeven, either through pips or a target price, once the trade becomes favorable.

Cet Expert Advisor ne fait pas de transactions. Un simple panneau, implémenté à l'aide de la bibliothèque standard Canvas, vous permet de dessiner des chiffres à l'aide de la souris. Le modèle mnist.onnx formé est utilisé pour reconnaître les chiffres.

This is a simple program to compare asynchronous and synchronous all close. It is a sample program, so feel free to modify it for your own testing purposes, such as adding conditions.

The MT5 custom indicator, named "wd.Multi_LineMA.mq5," is designed to offer traders valuable insights into Moving Average values from a higher timeframe (MTF Multi TimeFrame). It encompasses additional visual features for in-depth analysis, such as the ability to view trails for a specified number of bars and a dynamic MA horizontal price line.

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

L'indicateur d'oscillateur Know Sure Thing (KST) basé sur le taux de variation des prix (ROC)

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

Oscillateur ergodique Indice de momentum stochastique (SMI)

Standard Bollinger Bands indicator with averaging features added

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

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.

higher confidence to get into trade

The CDebugLogger class is a flexible and comprehensive logging utility designed for use in MQL4/5 environments. It allows developers to log messages at various levels of importance (INFO, WARNING, ERROR, DEBUG) with options to include timestamps, function signatures, file names, and line numbers in the log entries. The class supports logging to both the console and files, with the ability to save logs in a common folder and in CSV format. Additionally, it offers functionality to silence logs based on specific keywords, ensuring that sensitive information is not logged. This class is ideal for developers looking to implement robust logging mechanisms in their MQL4/5 applications, with customizable features that cater to a wide range of debugging and monitoring needs.

The simplest class for logging in MetaTrader 5 with support for levels, message format, include and exclude filters on substrings.

This MQL5 script exports candlestick data for various timeframes into a CSV file, capturing essential market information like open, high, low, and close prices. It analyzes each candlestick's characteristics, including body and wick sizes, while calculating additional metrics such as candle gaps. After processing the latest 21 bars, it notifies the user upon successful data export.

this is a copier template

Creating profit labels on deals (closed trades) which also show in the strategy tester

Prototype for data collection. Dummy buffers for the data window (for data collection purposes) for the hour of the day, and an additional buffer for the hour of the day. Comments the hour of the day.

12345678910...188