Versions in this module Expand all Collapse all v1 v1.0.1 Feb 18, 2021 Changes in this version + type P_github_com_SuperGod_indicator_CommonIndicator struct + Indicator_ func(interface{}) map[string]float64 + Object interface{} + Result_ func(interface{}) float64 + Update_ func(_proxy_obj_ interface{}, price float64) + func (P *P_github_com_SuperGod_indicator_CommonIndicator) Indicator() map[string]float64 + func (P *P_github_com_SuperGod_indicator_CommonIndicator) Result() float64 + func (P *P_github_com_SuperGod_indicator_CommonIndicator) Update(price float64) + type P_github_com_SuperGod_indicator_Crosser struct + FastResult_ func(interface{}) float64 + Object interface{} + SlowResult_ func(interface{}) float64 + Update_ func(_proxy_obj_ interface{}, price float64) + func (P *P_github_com_SuperGod_indicator_Crosser) FastResult() float64 + func (P *P_github_com_SuperGod_indicator_Crosser) SlowResult() float64 + func (P *P_github_com_SuperGod_indicator_Crosser) Update(price float64) + type P_github_com_SuperGod_indicator_Indicator struct + Object interface{} + Result_ func(interface{}) float64 + Update_ func(_proxy_obj_ interface{}, price float64) + func (P *P_github_com_SuperGod_indicator_Indicator) Result() float64 + func (P *P_github_com_SuperGod_indicator_Indicator) Update(price float64) + type P_github_com_SuperGod_indicator_Updater struct + Object interface{} + Update_ func(_proxy_obj_ interface{}, price float64) + func (P *P_github_com_SuperGod_indicator_Updater) Update(price float64) v1.0.0 Apr 12, 2019 Changes in this version + var ExtraIndicators = map[string]NewCommonIndicatorFunc + func RegisterIndicator(name string, fn NewCommonIndicatorFunc) + type Boll struct + func NewBoll(winLen, k int) *Boll + func (b *Boll) Bottom() float64 + func (b *Boll) Cal() + func (b *Boll) Indicator() map[string]float64 + func (b *Boll) Result() float64 + func (b *Boll) Top() float64 + func (b *Boll) Update(price float64) + type CommonIndicator interface + Indicator func() map[string]float64 + func NewCommonIndicator(name string, params ...int) (ind CommonIndicator, err error) + type CrossTool struct + func NewCrossTool(crosser Crosser) *CrossTool + func (ct *CrossTool) IsCrossDown() bool + func (ct *CrossTool) IsCrossUp() bool + func (ct *CrossTool) Update(price float64) + type Crosser interface + FastResult func() float64 + SlowResult func() float64 + type EMA struct + func NewEMA(winLen int) *EMA + func (e *EMA) Update(price float64) + type Indicator interface + Result func() float64 + type JsonIndicator struct + func NewJsonIndicator(m CommonIndicator) *JsonIndicator + func (j *JsonIndicator) MarshalJSON() (buf []byte, err error) + type MABase struct + func (m *MABase) Result() float64 + type MACD struct + func NewMACD(short, long, signal int) *MACD + func NewMACDWithSMA(short, long, signal int) *MACD + func (ma *MACD) DEA() float64 + func (ma *MACD) DIF() float64 + func (ma *MACD) FastResult() float64 + func (ma *MACD) Result() float64 + func (ma *MACD) SlowResult() float64 + func (ma *MACD) Update(price float64) + type MAGroup struct + func NewMAGroup(fast, slow Indicator) *MAGroup + func (mg *MAGroup) FastResult() float64 + func (mg *MAGroup) SlowResult() float64 + func (mg *MAGroup) Update(price float64) + type Mixed struct + func NewMixed(indicator Indicator, crossIndicator Crosser) *Mixed + func (m *Mixed) FastResult() float64 + func (m *Mixed) Indicator() map[string]float64 + func (m *Mixed) IsCrossDown() bool + func (m *Mixed) IsCrossUp() bool + func (m *Mixed) Result() float64 + func (m *Mixed) SlowResult() float64 + func (m *Mixed) SupportResult() bool + func (m *Mixed) SupportSlowFast() bool + func (m *Mixed) Update(price float64) + type NewCommonIndicatorFunc func(params ...int) (CommonIndicator, error) + type RSI struct + func NewRSI(winLen int) *RSI + func (r *RSI) Result() float64 + func (r *RSI) Update(price float64) + type SMA struct + func NewSMA(winLen int) *SMA + func (s *SMA) Update(price float64) + type SMMA struct + func NewSMMA(winLen int) *SMMA + func (sm *SMMA) Update(price float64) + type Stoch struct + func NewStoch(winLen, periodK, periodD int) *Stoch + func (s *Stoch) DResult() float64 + func (s *Stoch) KResult() float64 + func (s *Stoch) Result() float64 + func (s *Stoch) Update(price float64) + type StochRSI struct + func NewStochRSI(winLen, rsiWinLen, k, d int) *StochRSI + func (sr *StochRSI) DResult() float64 + func (sr *StochRSI) FastResult() float64 + func (sr *StochRSI) KResult() float64 + func (sr *StochRSI) Result() float64 + func (sr *StochRSI) SlowResult() float64 + func (sr *StochRSI) Update(price float64) + type Updater interface + Update func(price float64)