ChaikinVolatility (Function)
The ChaikinVolatility series function compares the spread between high and low prices via Rate of Change (ROC) formula to measure volatility.
Syntax
ChaikinVolatility(SmoothingType, MALength, ROCLength)
Returns (Double)
A numeric value for the current bar.
Parameters
Name |
Type |
Description |
SmoothingType |
Numeric |
Sets the smoothing method: 1 = Exponential Moving Average, 2 = Simple Moving Average. |
MALength |
Numeric |
Sets the number of bars to use for calculating moving average. |
ROCLength |
Numeric |
Sets the number of bars to use for calculating rate of change. |
Reference
Based on Marc Chaikin's volatility calculation.