Strategy report output into a chart – script MetaTrader 5

Blue and red arrows displaying deals
Follow these steps: Put report_into_chart.mql5 into ¨\MQL5\Scripts” folder. Compile report_into_chart.mql5 and get report_into_chart.ex5. Unzip StrategyTester.zip and put StrategyTester.html into ¨\MQL5\Files” folder. Refresh your Metatrader 5. Run report_into_chart script from Metatrader and all deals will be displayed on the selected chart as blue (buy positions) or red (sell positions) arrows. Later you can replace StrategyTester.html file with … Read more

Script to Map Market Watch Symbols Based on Similarity – script MetaTrader 5

Script to Map Market Watch Symbols Based on Similarity - script for MetaTrader 5
This script is a reference solution designed to help developers and MetaTrader 5 users solve a common problem: the mismatch between configured symbol names and the actual names provided by brokers. As a developer, I have faced this challenge when working on configurable Expert Advisors (EAs), especially those that handle multi-symbol strategies. It is common … Read more

Fibonacci Bollinger Bands (MQL5 Version) – Converted from Pine Script by Rashad – indicator MetaTrader 5

Fibonacci Bollinger Bands (MQL5 Version) - Converted from Pine Script by Rashad - indicator for MetaTrader 5
This Fibonacci Bollinger Bands indicator is a conversion from Pine Script (by Rashad) to the MQL5 language. It combines the power of Bollinger Bands with Fibonacci levels to help traders identify dynamic support and resistance zones effectively. Features: Automatically calculates Fibonacci levels on Bollinger Bands. Provides a unique perspective for breakout and reversal trades. Fully … Read more

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