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

Codes sources MQL5 des scripts pour MetaTrader 5 - 4

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

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.

This script will export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. Current version 1.0 does not add the takeprofit and stoploss. Any advice to improve this is welcomed.

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

The script builds the Fibonacci Levels graphical object with the option of selecting the number of its segments

A script for automatically drawing the levels of the intraday High/Low on the FORTS trading session. There is also an option to draw the levels of the night High/Low prices (if the latter ones are beyond the intraday ones)

The script creates the Fibonacci levels graphic object with a large number of settings.

This is a utility for rounding the lot size correctly

The script calculates the average and weighted volatility of a symbol.

This script helps to save the objects into a file and show the objects on a new chart.

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.

A simple include file to print out the values and names of variables.

A script for showing the swap value on a financial instrument. The texts of positive and negative swaps are shown in different colors.

A script calculating the distance between a point and a line.

The script draws horizontal lines representing BUY (blue) and SELL (red) orders.

A library for working with a third-party tick archive.

Example of functions MathCeil, MathRound and MathFloor.

Display the actual stored value of a floating-point number (float or double type), with very high precision up to 55 decimal digits. This helps to debug exact value of floating-point numbers for other MQL5 programs.

VR Orders History MT5 Lite - a script for downloading trading history in the CSV format.

Counting the number of series of bullish and bearish bars. Displaying the result as a chart. Saving the screenshot of the resulting chart. The script uses the CGraphic class.

Counting the number of series of bullish and bearish bars. Displaying the result as a chart. Saving the screenshot of the resulting chart. The script uses the CGraphic class.

Script for checking the LeadLagRelationship indicator (https://www.mql5.com/en/market/product/26229)

The script has three independent functions for determining the current FORTS futures.

The scripts places multiple pending orders lower than the current price.

The scripts places multiple pending orders higher than the current price.

The 'History Deals and Orders' script shows absolutely all properties of deals and orders from the trading history over a given time interval.

HTML file converter for the economic calendar. The script parses a page downloaded from http://www.investing.com/economic-calendar, and forms a CSV file with the list of news.

The script saves current chart settings to a template with the specified name.

The script finds on the chart all OBJ_TREND (trendline) objects and moves the line to the specified date with the specified price shift.

The script deletes all orders of the type specified in settings, on the current symbol.

The script deletes all pending orders on all symbols at a time.

The script closes all pending orders on the current symbol.

The script calculates the maximum lot size that can be used to open a position using the entire free margin available on the deposit.

A script for placing two Buy Stop Limit and Sell Stop Limit orders at an equal distance.

A script for placing a SellStop Limit order.

A script for placing a BuyStop Limit order.

The script allows to quickly remove indicators from charts.

The script removes from the chart a comment located in the upper left corner.

The script removes old objects of the selected type from all charts, if the time coordinates of these objects are outside of the trigger level.

The script removes all objects of the type selected by the trader in input parameters from all charts of the client terminal.

The script removes from the current chart all objects of the user selected type

1234567