Indicado.ADI.eval-exclamation-mark

You're seeing just the function eval-exclamation-mark, go back to Indicado.ADI module for more information.

Calculates ADI for the list. The list argument passed to eval function should be list of adi_data_map type spec. Raises exceptions when arguments does not satisfy needed conditions.

Returns {:ok, adi_ist} or {:error, reason}

Raises NotEnoughDataError if the given list lenght is zero.

Examples

iex> Indicado.ADI.eval!([%{low: 1.0, high: 4.0, close: 3.0, volume: 2.0}])
[0.6666666666666666]

iex> Indicado.ADI.eval!([])
** (NotEnoughDataError) not enough data