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 scripts pour MetaTrader 5 selon les notes des utilisateurs

Soumettre votre code
dernier | meilleur

Translate risk percentages to the monetary figure based on the account balance

Time-related functions for empirical detection of server time zone and daylight savings mode (DST) from history of quotes

This script saves a predefined set of economic events from the MetaTrader's built-in economic calendar into CSV file.

Unfortunately, I discovered that some brokers are a bit sloppy with the server time change due to the daylight saving time (DST), which I did not expect and which surprised me a lot. Here is a script with which anyone can check their broker.

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

This service periodically checks swaps for predefined symbols and saves detected changes into CSV-files for further analysis and potential replay (not implemented here). Also it monitors and alerts swap changes of existing positions.

Les algorithmes d'optimisation basés sur la population sont rassemblés ici. L'archive contient tous les fichiers nécessaires pour exécuter les algorithmes sur des fonctions de test.

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

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.

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.

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

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 script is a reference solution for mapping symbol names configured by users in MetaTrader 5 EAs or scripts to the actual names provided by the broker. It uses the Levenshtein distance algorithm to automatically identify the most similar symbol in Market Watch. It is ideal for developers facing compatibility issues with prefixes or suffixes in symbol names. This is a customizable starting point to adapt to any specific needs.

This script was developed for displaying saved Strategy report from the Strategy Tester into a chart.

Le script Auto SL TP by Risk Reward Ratio est un outil simple mais puissant conçu pour les traders de MetaTrader 5 qui souhaitent rationaliser leur processus de gestion du risque. Ce script automatise le processus de définition des niveaux de Stop Loss (SL) et de Take Profit (TP) pour les positions ouvertes en fonction d'un ratio Risque/Récompense défini par l'utilisateur et d'un Stop Loss en pips. Que vous soyez un trader débutant ou expérimenté, ce script vous permet de gagner du temps et d'assurer une gestion cohérente des risques.

This Script collects all MQL5 built-in indicators buffers and stores them in a CSV file for analysis purposes

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.

Signature de la bougie avec exemple | Pour la recherche et le développement

Le trading du XAUUSD (or) est souvent influencé par des événements économiques majeurs tels que les communiqués de presse sur le dollar, la livre sterling ou l'euro. Pour atténuer les risques pendant ces périodes de volatilité, il est essentiel d'utiliser un filtre de nouvelles dans votre Expert Advisor (EA). Dans cet article, je vais vous expliquer comment créer un filtre d'actualité simple sur MT5 et l'appliquer au trading du XAUUSD.

Set TakeProfit by just dragging and dropping script on the desired price level.

Ce script CalculateHistoryProfit version 1.0 est conçu pour calculer les bénéfices d'une période donnée à l'aide d'un panneau graphique.

Provide simplest class to read and parse CSV file

Export history of closed positions from MT5 retail hedging account selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software.

This is a script to print all open trades and their PnLs at a specific time in history.

A quick little script to make traders' lives easier. The one thing that always annoys me is resetting the properties like colors for a new chart, to make it look the way i like it. So Here is a script to make things smoother.

This function performs the main logic of opening a trade. Calculates the opening price, take profit levels and stop loss based on symbol information and parameters provided by the user. Prepare a trade request (MqlTradeRequest) with the necessary information, such as symbol, volume, order type, deviation, comment, magic number, etc. Call the OrderSend function to send the operation request and get the result. SetTypeFillingBySymbol function: Determines the order fill type (Fill or Kill, Immediate or Cancel, or Return) based on the symbol's filling policy. GetMinTradeLevel function: Calculates the minimum operating level based on the freeze level and the symbol stops level. Adjusts the minimum level to make sure it is within certain limits and returns the result.

This script finds DeMark pivot points, displays them on the chart and indicates their dimensions.

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

The script obtains information about the number, types and sizes of input and output tensors in an ONNX model

hi, this code need your telegram token and telegram chat id . you can make robot by BotFather and then search in google how you can find telegram token and chat id then attach them to this code . now every trade would be signals on your telegram channel.

To assist traders who wish to open multiple buy orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Buy is the number trades the trader wish to open instantly. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple buy orders, it can save traders valuable time and allow them to focus on other aspects of their trading strategy.

A small example of the Mandelbrot fractal calculation in OpenCL. The OpenCL accelerates calculations of fractal approximately up to 100 times in comparison with the CPU calculations.

Set StopLoss by just dragging and dropping script on the desired price level.

Script For Trap News High Impact

script to open a buy position at the current price in the MT5 window with a specified stop loss (in pips) and take profit (in pips)

Simple script for apply template and/or timeframe to all charts opened.

The script controls the display of time and price scales for all open charts or only for one chart.

This is the version 2 of my script to export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. More columns were added and fixed minor errors. The code for processing and exporting data was rewritten.

Display interactive HTML graph of the account balance inside the web browser.

12345678