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 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.

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 script saves all the OHLCV data available on the chart to a CSV file.

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.

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 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.

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

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.

Provide simplest class to read and parse CSV file

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.

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

Get commission of an active position in mt5 , its easy to use function.

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

The script MinMargins.mq5 is designed to help traders quickly calculate and document the minimum amount of money required to open a position with the smallest lot size for all symbols available in the Market Watch. This data is saved to a CSV file for easy review and analysis.

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.

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.

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)

A simple script that allows you to open a Short position using the current price location with a specified Risk Percentage and Reward Ratio.

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.

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

Encapsulating a family of interchangeable algorythms which can be modified independently from the client.

Sample code to count consecutive no. of bull or bear bars.

A script for placing a BuyStop order

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

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.

Sec-WebSocket-Key Generator

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

The script shows the trade volume in lots required to move the position to a desired level.

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

12345678