Swap Monitor – script MetaTrader 5

Swap Monitor - script for MetaTrader 5
This is a service, which periodically inspects actual swaps for specified symbols and saves new values (if changes detected) into CSV-files. The files are created in folders under the names of corresponding symbols and splitted by months – for example, the file 202410.csv is for October of 2024. Every line in a CSV-file stores a … Read more

Script to extract Candlesticks data from all time frames to CSV. – script MetaTrader 5

Script to extract Candlesticks data from all time frames to CSV. - script for MetaTrader 5
Overview of the CandlesticksData Script The CandlesticksData script is designed for the MetaTrader 5 trading platform, allowing traders and developers to export detailed candlestick data into a CSV file for further analysis or record-keeping. This script is particularly useful for quantitative analysis, backtesting trading strategies, or for educational purposes, enabling users to examine historical price … Read more

TimeServerDaylightSavings – script MetaTrader 5

Example of week opening hour changes in quotes due to DST switch
This script introduces the function TimeServerDaylightSavings() that is missing among the built-in ones, which provide only TimeDaylightSavings() for local computer. In addition the attached header mqh-file includes some other helpful server-bound time-related functions, in particular allowing you to know if your broker uses DST switches in general. All this is based on empirical analysis of … Read more

Code To Check And Delete Chart Objects For MT5 – script MetaTrader 5

Code To Check And Delete Chart Objects For MT5 - script for MetaTrader 5
To Check And Delete Chart Objects For MT5 Check And Delete Chart Object Script Scans through the current chart for any available chart objects, Counts and delete them accordingly -And log the the names of the objects on the chart respectively. Code To Check And Delete Chart Objects For MT5 – script for MetaTrader 5

Best Logging Class for both MQL4 and MQL5 – library MetaTrader 5

Best Logging Class for both MQL4 and MQL5 - library for MetaTrader 5
CDebugLogger Class: A Comprehensive Logging Utility for MQL4/5 The CDebugLogger class is a powerful and flexible logging utility specifically designed for MQL4/5 environments. It is an essential tool for developers who need to monitor, debug, and track the behavior of their applications with precision. Below, we explore the key features and capabilities of this class. … Read more

Save OHLCV Data from Chart to CSV File – script MetaTrader 5

Save OHLCV Data from Chart to CSV File - script for MetaTrader 5
The standard method of getting historical data in metatrader5 is to use “View>Symbols>Request” tool as shown in the picture below: However, this sometimes doesn’t return all the data available on the chart. This script saves all the available historical data to a CSV file located in “Files” folder inside the “Common Data Path” directory. Note: Make … Read more