Skip to content

charton API


charton API / @chart-on/ta / relativeVolatility

Function: relativeVolatility() ​

relativeVolatility(values, length, smoothing, out?, state?): Float64Array

Defined in: dispersion.ts:32

Relative volatility index, 0 to 100: rsi's formula with the stdev of the last length values in place of the change: a bar's deviation counts as up when its value rose and as down otherwise, an unchanged value included, and each side is smoothed by an ema over smoothing. 50 with neither. Lookback length + smoothing - 2 (at least smoothing).

Pass state to keep the averages for relativeVolatilityAt.

Parameters ​

values ​

Series

length ​

number

smoothing ​

number

out? ​

Float64Array<ArrayBufferLike>

state? ​

RelativeVolatilityState

Returns ​

Float64Array