VM - Volatility Measurement - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources


I want to show you a small script that copies the candlestick data for a specified time period and searches there for the various parts of the candlestick (body, upper and lower shadows). The script then finds the maximum and minimum values and the arithmetic mean. In this case, the scan will be performed in all time ranges. As a result, the script displays the received data as a table in the upper left corner of the active window.
The following abbreviations are used in the script:
For time frames smaller than weekly, the result of the arithmetic mean is shown rounded to one decimal place.
The script downloads history for all time ranges and may not download all data on first launch. Of course, in this case the display will be incorrect and a replication error message will be thrown to the log. To run the script to the end, it needs to be run multiple times.
When using large period scans, data witnesses in the minute time range may also crash due to too large data arrays.
why you need it
This script was developed to search for a unique characteristic of a currency pair, namely volatility. By using it, you can find out how many points of the movement of these or those currency pairs are strong. The arithmetic mean is particularly helpful for positioning.
So, this is the result of the script working.

Attachment download
📎 vm.mq5 (39.51 KB)
Source: MQL5 #1669
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •