ClosePosition – script MetaTrader 5

ClosePosition - script for MetaTrader 5
ClosePosition script is designed for closing open positions with the volume depending on their size. Input parameters: //+———————————————-+ //| INPUT PARAMETERS OF THE SCRIPT               | //+———————————————-+ input double VOLUME=1.0;    // The volume of the closed position in relation to the initial input int  DEVIATION=10;    // Price deviation input uint RTOTAL=4;        // The number of repeats on unsuccessful transactions input … Read more

InfoMarket – script MetaTrader 5

InfoMarket script operation
This is an informative script displaying data on the current trading pair in the upper left corner of the chart window. It displays such data as order freeze level (FreezeLevel), minimum and maximum lot sizes, lot step, nearest possible distance for setting orders (StopLevel), swaps, etc. The data is displayed on the chart for twenty … Read more

Displaying Several CChartObject Objects in a Single Window – script MetaTrader 5

Drawing several charts in a single window
Description: Sometimes it is necessary to monitor several charts simultaneously to find correlations between changes in the rates of various currency pairs. This script allows traders to do that displaying several subcharts in a single chart window. The script has been developed to create charts for the Championship’s Minutes at the Automated Trading Championship 2012. … Read more

SendPush – script MetaTrader 5

Fig.1 Sending PUSH-notifications from the terminal on the computer.
Description: The simplest script to send instant PUSH-notifications to smartphone. It is quite naturally that before sending instant notifications you should set client terminal to send them to your smartphone! Fig.1 Sending PUSH-notifications from the terminal on the computer.  Fig.2 Getting PUSH-notifications by smartphone.  SendPush – script MetaTrader 5

Schnick – Support Vector Machine Learning Tool Tester – script MetaTrader 5

Schnick - Support Vector Machine Learning Tool Tester - script for MetaTrader 5
This script was written to form part of the “Machine Learning: How Support Vector Machines can be used in Trading” article posted on the MQL5 website. Imagine this hypothetical scenario, you are a researcher investigating a rare animal only found in the depths of the Arctic called Shnicks. Given the remoteness of these animals, only … 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

The example of the work with the CSV file as with a table – script MetaTrader 5

Output result of the script.
The script demonstrates the work with the table in which the only detail is necessity to know the number of columns. news.txt should be converted to csv file with delimiter”;”, or any other file but in the same code. filehandle=FileOpen(“News.csv”,FILE_READ|FILE_CSV|FILE_ANSI,’;’); Instead of “;” set this symbol. Such approach allows to work with each line separately, … Read more