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

Sample pine script stochastic divergence converted to MQL5 – indicator MetaTrader 5

Sample pine script stochastic divergence converted to MQL5 - indicator for MetaTrader 5
The purpose of this code is to convey an idea to people seeking simple and functional approach to converting pine script to MQL5. Here is the pine script code: //@version=5 indicator(title=’sample stochastic divergence’, overlay=true) stoch_len = input.int(title=’stoch_len’, defval=5) f_top_fractal(_src) =>     _src[4] < _src[2] and _src[3] < _src[2] and _src[2] > _src[1] and        _src[2] > … 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

PrevDayLines.mq4 – Draw Previous Day’s High, Low, and Average Price Lines – script MetaTrader 4

PrevDayLines.mq4 - Draw Previous Day's High, Low, and Average Price Lines - script for MetaTrader 4
The PrevDayLines.mq4 script is a tool for MetaTrader 4 that automatically draws three critical price levels from the previous trading day on your chart. These levels include the highest price (Max), the lowest price (Min), and the average price (Avg), providing traders with a clear visual reference for key support and resistance points. The script … Read more