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

Codes sources MQL5 des scripts pour MetaTrader 5 - 2

icon

Les scripts effectuent des actions ponctuelles dans MetaTrader 5 à l'aide d'un programme MQL5 et sont supprimés du graphique immédiatement après. Les exemples de fonctions comprennent le téléchargement de l'historique de trading, la génération d'un rapport et son envoi par e-mail, le téléchargement et le traitement des données depuis un fichier. Les scripts peuvent également être utilisés pour créer une interface graphique ou exécuter rapidement des opérations de trading de type unique, par exemple, clôturer immédiatement toutes les positions.

Vous pouvez télécharger et lancer les scripts proposés dans MetaTrader 5. La bibliothèque de scripts est également disponible directement depuis la plateforme MetaEditor, ce qui vous permet d'apprendre la programmation MQL5.

Soumettre votre code
dernier | meilleur

The script (not an Expert Advisor) sets and moves the Stop Loss for all positions on the current symbol to the specified price

This simple quick & dirty script code will output a CSV file of all the Signals' properties as reported by the MQL5 Trade Signals functionality.

Export the history of transactions on the trading account.

Rates Version of a script https://www.mql5.com/en/code/30791

Exemple de publication d'un message contenant une image sur le site Web MQL5.com à l'aide de la fonction WebRequest(). Voici un exemple d'autorisation à l'aide d'un login et d'un mot de passe, et d'insertion d'une image dans un SMS.

Si vous avez besoin de n'afficher qu'une partie de l'image pour le moment et d'en masquer une autre, vous pouvez utiliser la fenêtre mobile en spécifiant la zone visible de l'image.

Script simple avec démonstration d'utilisation de la fonction ChartNavigate().

Exemple d'image de fond du graphique, créée à l'aide de l'objet de type OBJ_BITMAP.

Voici un exemple simple qui montre comment télécharger une page (fichier) à partir d'Internet en utilisant la bibliothèque wininet.dll.

Le script illustre le contrôle des propriétés du graphique à l'aide des classes de la bibliothèque standard (CChart).

Le script illustre le contrôle des objets graphiques à l'aide des classes de la bibliothèque standard.

The script is best use to clean up all drawings ( Delete All Object, Comment, horizontal line, vertical line, arrows etc) on current chart. Please feel free to modify based on your needs.

SymbolInfo example script lacks margin and leverage data wich are nowhere to be found explicitely in Metatrader, the trader must search thoroughly into the broker site in order to find them. The aim of this script is to provide a remedy to it from a standard tool.

CloseAll script complying FIFO rules.

Script to download EVZ data for Euro FX Vix indicator

Building good trading habits by seeing things in terms of percentage not in terms of money.

This is a simple script that Closes all Orders and Positions available

3 fibo levels.

closing partially script and Stop loss to Break Even point

Risk Reward Tool calculates Risk reward like 1:2 1:3 1:4 and 1:5

This script draws Fibonacci Expansion OBJ_EXPANSION with options to add your own custom values

This script draws Fibonacci Fan OBJ_FIBOFAN with options to add your own custom values

This script draws Fibonacci Retracement OBJ_FIBO with options to add your own custom values

Aquarium Canvas Background for Chart This script adds cool live canvas background on the chart like aquarium

Building good trading habits by seeing things in terms of percentage not in terms of money.

Calculates the average range of prices (in points) for intraday periods.

This is a Script and Class for creating, evaluating and adding accounts to an encrypted license file for licensing an MQL EA or Indicator.

The currency strength meter is a trading tool that is used to identify trending and consolidating markets based on the percentage rate of change in price from one period to the next.

I find the lot calculation tedious so I just use this script and tell it the dollar amount to use. It then does the rest. This works for any currency.

I find the lot calculation tedious so I just use this script and tell it the dollar amount to use. It then does the rest. This works for any currency.

The breakout strength meter is a trading tool that is used to identify which currencies are the strongest to breakout, and which currencies are the weakest to breakout

This unit test frameworks eases the development of unit tests for more complex expert advisor programs. The MQL5 developer can test single components. The test framework starts the strategy tester so that there is test data available if required. I am using the framework to do test driven development (TDD) on my MQL5 programs.

Print info about a closed position by its position ticket or identifier.

The 8 effective steps to build a robust day trading plan using Fibonacci retracement

For day traders. 2 highly important indicators to turn strategies into extreme winning ones. The Win/Loss ratio and the Reward/Risk ratio will allow us to identify the best times and days our strategy works the best

For day traders, this is one of the important thing to consider in order to improve our strategy by calculating on average how much an asset moves, in which it will allow us to identify the best TIME during the day to trade when the market moves the most as well

This is one of the important thing to consider in order to improve our strategy by calculating on average how much an asset moves, in which it will allow us to identify the best days to trade when the market moves the most as well as the worst days to trade in order to prevent trading during these days.

Most traders keep losing money because they focus on money rather than planning their trades based on Percentage risk.

Are you tired and lost when it comes to creating an attractive market watch list ? You always see pro traders creating an attractive market watch list in which they draw support/resistance and create all possible scenario ? Well we will guide you step by step to create your own attractive market watch list for potential entries.

This script is to get the last deal history data, for example : profit, deal type, etc, and put the Comment on the chart.

1234567