Script for Calculation of Candle Statistics - script for MetaTrader 5

Script for Calculation of Candle Statistics - script for MetaTrader 5

The script calculates candle statistics (the minimal, maximal and average values of candles body and shadows) of the current chart. The calculated statistics is shown for 3 groups (bullish, bearish and all) of candles in the upper left corner of the chart. The calculation interval depends on 5 first input parameters (the interval also can be selected with two vertical lines with names, defined in input parameters). How does it work: If there
Visual Аnalysis AfterTesting - script for MetaTrader 5

Visual Аnalysis AfterTesting - script for MetaTrader 5

The ForAfterTesting script for changing the display of graphical objects created by the strategy tester and for easier visual analysis of the results. Changes the parameters of lines (the ChangeOnly parameter). Simplifies the analysis of profitable (parameter ChangeWinners) and loss (parameter ChangeLosses) trades. Key features: Changing object properties: the color of the line, the display style, width, color of the arrows.  Analysis
ChartChanger - script for MetaTrader 5

ChartChanger - script for MetaTrader 5

The script is assigned to a hot key for quick change of charts around in a circle.
Demo_FileWriteDouble - script for MetaTrader 5

Demo_FileWriteDouble - script for MetaTrader 5

The script gets the values of the Moving Average indicator and writes them in the binary file in "Data" subdirectory of the local terminal folder. In script input parameters can be specified parameters for the MA indicator calculation, the name of the currency pair and timeframe, as well as date from which we will calculate the indicator values. In addition to the MA indicator values ​​the corresponding values ​​of time preliminary led to a
Demo_FileSize - script for MetaTrader 5

Demo_FileSize - script for MetaTrader 5

The script sorts one by one all CSV files in the general folder of all client terminals to obtain their sizes. After getting the size, its value is compared to the "InpThresholdSize" threshold value and according to the result the file is placed either in the "InpBigFolderName", or the "InpSmallFolderName" named folder. Thus large and small dimension files are sorted. Besides using the FileSize() function, there are also the FileFindFirst(), the
Demo_FileTell - script for MetaTrader 5

Demo_FileTell - script for MetaTrader 5

The script opens the text file, analyzes the positions of the strings start points in this file and displays string text with a random number. To receive the array of the start positions for each string in the file the GetStringPositions() function is written. The function searches the strings start point considering the type of encoding files that can be specified in the "InpEncodingType" input parameter. Besides using the FileTell() function,
Demo_FileWriteInteger - script for MetaTrader 5

Demo_FileWriteInteger - script for MetaTrader 5

The script gets prices from the specified symbol, analyzes them and writes price movement data in the binary file in certain periods of time. The FileWriteInteger() function is used for writing all data. Date value will be preliminary converted to the string, split to the uchar type array and then written in the file using the function. Code: //--- show the window of input parameters when launching the script #property script_show_inputs //---
VM - Volatility Measure - script for MetaTrader 5

VM - Volatility Measure - script for MetaTrader 5

I would like to represent you a small script that copies candlestick data for the specified period of time and searches separate parts of the candlestick (body, upper and lower shadows) there. Then the script finds the maximum and minimum value, as well as the arithmetic mean value. In this case, scanning is performed on all timeframes. As a result, the script displays the received data as a table in the upper left corner of the active window.
The scripts for opening long positions - script for MetaTrader 5

The scripts for opening long positions - script for MetaTrader 5

These scripts are designed to buy with fixed values of Stop Loss and Take Profit in points from the current price. There are four variants of scripts which can be divided into two groups: Scripts for brokers which have nonzero spread and admit the ability to set Stop Loss and Take Profit simultaneously performing a deal; Scripts for brokers which may have zero spread, otherwise, it is not recommended to set Stop Loss and Take Profit
The scripts for opening short positions - script for MetaTrader 5

The scripts for opening short positions - script for MetaTrader 5

These scripts are designed to sell with fixed values of Stop Loss and Take Profit in points from the current price. There are four variants of scripts which can be divided into two groups: Scripts for brokers which have nonzero spread and admit the ability to set Stop Loss and Take Profit simultaneously performing a deal; Scripts for brokers which may have zero spread, otherwise, it is not recommended to set Stop Loss and Take Profit