Indicado.RSI.eval-exclamation-mark
You're seeing just the function
eval-exclamation-mark
, go back to Indicado.RSI module for more information.
Specs
eval!([list(), ...], pos_integer()) :: [float(), ...] | no_return()
Calculates RSI for the list. It needs list of numbers and the length of list argument should at least be 1 more than period.
Raises NotEnoughDataError
if the given list is not longh enough for calculating RSI.
Raises BadPeriodError
if period is an unacceptable number.
Examples
iex> Indicado.RSI.eval!([1, 3, 5, 7], 2)
[100.0, 100.0]
iex> Indicado.RSI.eval!([1, 3], 3)
** (NotEnoughDataError) not enough data
iex> Indicado.RSI.eval!([1, 3, 4], 0)
** (BadPeriodError) bad period