Versions in this module Expand all Collapse all v1 v1.7.9 Oct 27, 2019 Changes in this version + type AlgSimple interface + Add func(float64) float64 + WarmCount func() int + Warmed func() bool + type CMO struct + func NewCMO(inTimePeriod int) *CMO + func (cmo *CMO) Add(v float64) float64 + func (cmo *CMO) WarmCount() int + func (cmo *CMO) Warmed() bool + type CMOS struct + func NewCMOS(inTimePeriod int, warmType WarmupType) *CMOS + func (cmos *CMOS) Add(v float64) float64 + func (cmos CMOS) Last() float64 + func (cmos CMOS) WarmCount() int + func (cmos CMOS) Warmed() bool + type DEMA struct + func NewDEMA(inTimePeriod int, warmType WarmupType) *DEMA + func (dema *DEMA) Add(v float64) float64 + func (dema *DEMA) WarmCount() int + func (dema *DEMA) Warmed() bool + type EMA struct + func NewEMA(inTimePeriod int, warmType WarmupType) *EMA + func (ema *EMA) Add(v float64) float64 + func (ema *EMA) Last() float64 + func (ema *EMA) WarmCount() int + func (ema *EMA) Warmed() bool + type KAMA struct + func NewKAMA(inTimePeriod int) *KAMA + func (kama *KAMA) Add(v float64) float64 + func (kama *KAMA) WarmCount() int + func (kama *KAMA) Warmed() bool + type KER struct + func NewKER(inTimePeriod int) *KER + func (ker *KER) Add(v float64) float64 + func (ker *KER) WarmCount() int + func (ker *KER) Warmed() bool + type RSI struct + func NewRSI(inTimePeriod int, warmType WarmupType) *RSI + func (rsi *RSI) Add(v float64) float64 + func (rsi RSI) Last() float64 + func (rsi RSI) WarmCount() int + func (rsi RSI) Warmed() bool + type TEMA struct + func NewTEMA(inTimePeriod int, warmType WarmupType) *TEMA + func (tema *TEMA) Add(v float64) float64 + func (tema *TEMA) WarmCount() int + func (tema *TEMA) Warmed() bool + type TRIX struct + func NewTRIX(inTimePeriod int, warmType WarmupType) *TRIX + func (trix *TRIX) Add(v float64) float64 + func (trix *TRIX) WarmCount() int + func (trix *TRIX) Warmed() bool + type WarmupType int8 + const WarmEMA + const WarmSMA + func ParseWarmupType(wt string) (WarmupType, error)