MAD Volatility PercentileMean Absolute Deviation (MAD) is a statistical measure that tells you how spread out or variable a set of data points is. It calculates the average distance of each data point from the mean (average) of the data set. MAD helps you understand how much individual values differ from the average value. It's a way to measure the overall "average distance" of the data points from the center point.
Indicator Overview:
This indicator measures market volatility using Mean Absolute Deviation of returns. The MAD Volatility Percentile Indicator calculates and represents market volatility as a percentile. The lower the percentile, the lower the volatility, and the higher the percentile value is, the higher the volatility is.
Understanding Volatility:
Lower percentiles signify a lower volatility market environment, reflecting reduced volatility, while higher percentiles indicate increased volatility and significant price movements. The indicator also comes with an SMA to see when the burst of higher volatility occur. You can also change the sample length on the indicators option. You can consider a big move occurring when the percentile value is above the SMA.
Application
Generally when the Mean Absolute Deviation Volatility Percentile is low, then this means that the volatility is low and a expansion could happen soon, which means a big move will occur soon. This indicator can also protect you from entering a trade that will not have any significant moves for a while.
This indicator is not a directional indicator but it can be applied with directional indicators, and is extremely versatile. For example you can use it with momentum indicators and if there is low volatility and bullish momentum then this can be a signal to potentially place a long position.
Features:
The percentile length sets the lookback of the percentile which calculates the percentile of the Mean Absolute Deviation of returns.
Sample length: Gets the volatility sample (returns)
SMA Length: The SMA of the percentile. Used to find when a move can be considered as an "expansion"
Alerts: You can also enable color alerts that flash when the volatility is at extremely low levels which can signify that a big move could happen soon.
This is an example of the alerts that the indicator comes with.
Meanabsolutedeviation
Mean Absolute Deviation BandsThe other way to build bands around price that uses Mean Absolute Deviation instead of Standard Deviation.
MAD is also a measure of variability, but less frequently used. MAD is better for use with distributions other than the Gaussian.
MAD is always less than or equal to Standard Deviation and the resulting bands are more tighter for the same parameters if we compare it to Bollinger Bands.
If you use band stops this can be useful.
Commodity Channel IndexI was checking the formula of built-in " cci " function and decided to publish a more customizable version of the Commodity Channel Index, so you can play with levels and a bunch of different sources.
If someone doesn't know what is this:
This indicator was originally developed by Donald R. Lambert ( "Commodities" magazine, 1980) to identify cyclical or seasonal price patterns in commodities. Now it is applied not only to commodities but to market indices, stocks and Forex.
Good luck!