ursatoro/momentum

Types

pub type StochasticResult {
  StochasticResult(k: Float, d: Float)
}

Constructors

  • StochasticResult(k: Float, d: Float)

Values

pub fn momentum_factor(
  candles: List(candle.Candle),
  window window: Int,
) -> Result(List(Float), util.IndicatorError)
pub fn rsi(
  candles: List(candle.Candle),
  period: Int,
) -> Result(List(Float), util.IndicatorError)
pub fn stochastic(
  candles: List(candle.Candle),
  k_period: Int,
  d_period: Int,
) -> Result(List(StochasticResult), util.IndicatorError)
Search Document