Indicado.EMA.eval-exclamation-mark
You're seeing just the function
eval-exclamation-mark
, go back to Indicado.EMA module for more information.
Specs
eval!([list(), ...], pos_integer()) :: [float(), ...] | no_return()
Calculates EMA for the list. It needs non empty list of numbers and a positive period argument.
Raises NotEnoughDataError
if the given list is not longh enough for calculating RSI.
Raises BadPeriodError
if period is an unacceptable number.
Examples
iex> Indicado.EMA.eval!([1, 2, 3, 4], 2)
[1.0, 1.6666666666666665, 2.5555555555555554, 3.518518518518518]
iex> Indicado.EMA.eval!([], 2)
** (NotEnoughDataError) not enough data
iex> Indicado.EMA.eval!([1, 3, 4], 0)
** (BadPeriodError) bad period