charton API / @chart-on/ta / mcginley
Function: mcginley()
mcginley(
values,length,out?):Float64Array
Defined in: smoothing.ts:208
McGinley dynamic: an average that speeds up when price runs away from it, md + (price - md) / (length * (price / md)^4), seeded like ema by the simple average of the first length values. When the average or the value is 0 the average takes the value, instead of dividing by zero. Lookback length - 1. A NaN input restarts it.
Parameters
values
length
number
out?
Float64Array<ArrayBufferLike>
Returns
Float64Array