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

Export historical data – script MetaTrader 5

Export historical data - script for MetaTrader 5
The script purpose is to export historical rates data to format, convenient for analysis in external programs, for example, in MathCad (example is attached). The output file contain the historical price data (bars) of the specified month in the following form:  DoubleToString(rates[i].time,0),     // number of seconds, passed from 1 Janunary 1970               rates[i].open,         // Open … Read more

All Market Symbols and Data extraction script – script MetaTrader 4

All Market Symbols and Data extraction script - script for MetaTrader 4
Description: Reads all available instruments and their characteristics and generates an HTML report. Positive Swaps are highlighted. Drag and drop the script on whatever chart. To visualize the report, just open it with your browser. (Its file is contained in the “/experts/files/” folder). An example of the Report can be found here . All Market … Read more

Simple tick data collector – indicator MetaTrader 4

Simple tick data collector - indicator for MetaTrader 4
Description: Many people don’t have high-frequency forex data (every minute for example) for discovering new strategies or backtesting an trading idea. Here, I write a simple tick data collector in MQL4 for you to collect tick data on any symbol you choose. You need to use it as an indicator though it doesn’t draw anything … Read more

sHistoryExport – handy script to export the historical data in the МetaТrader 4 format – script MetaTrader 5

sHistoryExport - handy script to export the historical data in the МetaТrader 4 format - script for MetaTrader 5
Script for historical data export. Problems with history in MetaTrader 4? Load the detailed history of any depth from MetaTrader 5!   Step 1: Set up Load script in the “terminal_data_folder\MQL5\scripts\”. Load libraries CheckHistory and String to the “terminal_data_folder\MQL5\Include\komposter\”. Compile the script.    Step 2: Set the depth of the history Go to the menu “Tools – Options” … Read more

Assistant for checking strategies on history data – indicator MetaTrader 4

Assistant for checking strategies on history data - indicator for MetaTrader 4
Builds 600 and up include the control functions, but only in indicators. That is still helpful. The “TPEHEP” (Trainer) was developed to help analyze the interesting strategies, and also to practice and gain experience in analyzing the signals on history data in the selected strategy. The maximum approximation to the market rules gives the opportunity … Read more