Converting hst-files into csv files - script for MetaTrader 4

Converting hst-files into csv files - script for MetaTrader 4

The hst2csv script is used for converting *.hst files to *.csv files, that can be imported into the MetaTrader 4 client terminal with no errors. Script Operation Principle The input_file_name parameter must be specified with the extension. Extensions other than *.hst are not processed; The input_file_from_history parameter set to true allows to open files from the current history folder (terminal_folderhistoryserver_name). If it is set to false,
History analysis on presence of holes and gaps - script for MetaTrader 4

History analysis on presence of holes and gaps - script for MetaTrader 4

The history_data_analysis_v3 script checks the history for missing bars, determines the size of the holes, gaps and makes a list of them. The original can be found here: history data analysis. This version has the output file format changed to *.csv and implements a heavily reworked output. Now, when using the MS Excel to open the file with the script operation results there is a ready table for machine evaluation. In principle, the output of
Equivolume and range-bars in the strategy tester - script for MetaTrader 4

Equivolume and range-bars in the strategy tester - script for MetaTrader 4

The script is an updated version of the FXTFileMaker script (see Conversion of the real tick data into FXT files of the strategy tester, which describes what *.tks file is and how to work with it). Among the revolutionary novelties are the abilities to create: any chart timeframe that is a multiple of one second, and not just from the standard timeframes set; chart of equally high candlesticks (range bars); equivolume charts.  The minimum
Placing Stop Orders Grid - script for MetaTrader 4

Placing Stop Orders Grid - script for MetaTrader 4

The script determines the price at the point of the chart, on which it was dropped down, and depending on that it places a grid of pending orders. If the specified price is lower than the current price, the script places a Sell order and a Sell Stop grid below it, if it is higher, then it places a Buy order and a Buy Stop grid above it.
Trade when the market is closed - script for MetaTrader 4

Trade when the market is closed - script for MetaTrader 4

The script is designed to place orders at the time when it is not possible, for example, when the market is closed. Specify the trading direction (buy or sell), the order volume and the parameters of the stops in the script. As soon as the market opens, the order will be placed. Moreover, this script will maintain the order until its closure. It is possible to specify all the trailing parameters, then the order will be maintained by a trailing
CM Open 2 Stop Orders - script for MetaTrader 4

CM Open 2 Stop Orders - script for MetaTrader 4

The script operates like an Expert Advisor with the exception that unloads from the memory itself once it completes its mission. At the specified time (set in parameters) two Buy Stop and Sell Stop orders are placed at a distance in points (set in parameters) from the current price, with the TP and SL in points (set in parameters). When either of orders triggers, the opposite order is deleted. Next, the script finishes its work.
iClean - script for MetaTrader 4

iClean - script for MetaTrader 4

Simple Script allows you to close, delete or remove Stop Loss and Take Profit values from all opened and pending orders. The script will Alert you in case it fails or play "ok" sound if success.
Plot MQL signal - script for MetaTrader 4

Plot MQL signal - script for MetaTrader 4

This script is helpful when we want to learn how to trade from a signal provider at https://www.mql5.com/en/signals/mt4. Choose one signal provider you prefer to learn then export trading history to CSV file. Save this CSV file to folder <data_folder>/MQL4/Files/. After this, open a MetaTrader 4 chart of currency pair that shows on CSV file then drop this script onto the chart and fill the filename (without .csv extension). You can adjust
ConvertTicksFile - script for MetaTrader 4

ConvertTicksFile - script for MetaTrader 4

The converter of the tick files created with the Ticks collector into different data representation formats. During the operation of the Ticks collector special tick files are created (TKS type). The main usage of the TKS files — creating non-standard charts in the MetaTrader 4. Those can be offline charts as well as non-standard strategy tester files. Nevertheless, there is still a range of problems that can be solved with the real tick history
Close_all-e - script for MetaTrader 4

Close_all-e - script for MetaTrader 4

Script that closes orders and (or) deletes pending orders. It can close all magics or only a certain one. It can close all symbols or only the current one. It can close only profitable or only unprofitable orders. It can delete pending orders. There is an option to set the number of order closing attempts, the pause between the attempts, the slippage.