Function hydra_dx_math::ema::iterated_volume_ema
source · Expand description
Calculate the iterated exponential moving average for the givenEmaVolumes.
iterations
is the number of iterations of the EMA to calculate.
prev
is the previous oracle value; the incoming value is always zero.
smoothing
is the smoothing factor of the EMA.