Volatility2 - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

A simple indicator that simply calculates the volatility of a financial asset. Volatility is calculated in points based on the highest and lowest prices.
Volatility is calculated using a simple MA, which is the average sum of the highest prices during the period minus the sum of the lowest prices during the same period. The resulting value is calculated in points.
Indicator input parameters:
//+------------------------------------------------+ //| Indicator input parameters | //+------------------------------------------------+ Input ENUM_MA_METHOD MA type = mode_SMA ; //Method for averaging Input unit fluctuation period = 5 ; // indicator period Enter integer shift = 0 ; // Horizontal movement of the indicator in bars Input unit Total levels = 20 ; //Number of levels Input unit starting level = 100 ; // starting level Input units level step = 100 ; // distance between levels Input color level color = clear blue ; // color of level
The indicator was first implemented in MQL4 and published in the code base of mql4.com on April 8, 2008.

Figure 1. Volatility2 indicator
Attachment download
📎 volatility2.mq5 (6.83 KB)
Source: MQL5 #1763
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •