Calculation of market volatility.
A convenient script that allows you to automatically calculate Forex volatility , and use the obtained data to place stop loss or take profit orders, as well as for other purposes.
The program is quite simple and practically does not require configuration; in order to calculate market volatility for the required period of time, we perform the following steps:
1. Download the volatility calculation script, the link to the file is located at the end of the article.
2. We carry out the installation according to the standard scheme, this process is described in the article “ Installing a Forex indicator ”; we only copy it to the skripts folder.
3. Launch the trader’s trading terminal and find the “AverageRange” scripts in the folder, click on it and go to the settings.
4. Settings - on the “General” tab, leave everything as is and go to “Input parameters”, here you set the length of the time period over which volatility will be calculated.
It should be taken into account that the initial parameter is best considered not the name of the time frame, but the planned duration of the transactions. For example, for M30, set the start and end of the calculation period to at least 6 hours, record the results, and then calculate for 30 minutes.
This approach will provide a more complete picture. For efficiency, you can save the initial settings for certain time periods, and then use them to save time.
When saving, you must remove everything in the file name line, otherwise saving will not happen.
Calculation data is displayed in the upper left corner of the trader's trading terminal:
• Average market volatility for the specified time period in points.
• Average candle body size.
• The size of the upper and lower shadow of the candle.
That is, in just a few clicks you get quite valuable information that can be used, for example, to place a take profit order, for example, the average volatility per day is 150 points, which means the take profit size should be at least less than this indicator .
Download the script “Calculation of volatility” .