Documentation
¶
Index ¶
- Variables
- func RegisterIndicator(name string, fn NewCommonIndicatorFunc)
- type Boll
- type CommonIndicator
- type CrossTool
- type Crosser
- type EMA
- type Indicator
- type JsonIndicator
- type MABase
- type MACD
- type MAGroup
- type 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
- type P_github_com_SuperGod_indicator_CommonIndicator
- type P_github_com_SuperGod_indicator_Crosser
- type P_github_com_SuperGod_indicator_Indicator
- type P_github_com_SuperGod_indicator_Updater
- type RSI
- type SMA
- type SMMA
- type Stoch
- type StochRSI
- type Updater
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ExtraIndicators = map[string]NewCommonIndicatorFunc{}
)
Functions ¶
func RegisterIndicator ¶
func RegisterIndicator(name string, fn NewCommonIndicatorFunc)
Types ¶
type CommonIndicator ¶
CommonIndicator
func NewCommonIndicator ¶
func NewCommonIndicator(name string, params ...int) (ind CommonIndicator, err error)
type CrossTool ¶
type CrossTool struct {
// contains filtered or unexported fields
}
func NewCrossTool ¶
func (*CrossTool) IsCrossDown ¶
type JsonIndicator ¶
type JsonIndicator struct {
CommonIndicator
}
func NewJsonIndicator ¶
func NewJsonIndicator(m CommonIndicator) *JsonIndicator
func (*JsonIndicator) MarshalJSON ¶
func (j *JsonIndicator) MarshalJSON() (buf []byte, err error)
type MACD ¶
type MACD struct {
// contains filtered or unexported fields
}
func NewMACDWithSMA ¶
NewMACDWithSMA macd signal line with simple ma
func (*MACD) FastResult ¶
func (*MACD) SlowResult ¶
type MAGroup ¶
type MAGroup struct {
// contains filtered or unexported fields
}
func NewMAGroup ¶
func (*MAGroup) FastResult ¶
func (*MAGroup) SlowResult ¶
type Mixed ¶
type Mixed struct {
// contains filtered or unexported fields
}
func (*Mixed) FastResult ¶
func (*Mixed) IsCrossDown ¶
func (*Mixed) SlowResult ¶
func (*Mixed) SupportResult ¶
func (*Mixed) SupportSlowFast ¶
type NewCommonIndicatorFunc ¶
type NewCommonIndicatorFunc func(params ...int) (CommonIndicator, error)
type P_github_com_SuperGod_indicator_CommonIndicator ¶ added in v1.0.1
type P_github_com_SuperGod_indicator_CommonIndicator struct {
Object interface{}
Indicator_ func(interface{}) map[string]float64
Result_ func(interface{}) float64
Update_ func(_proxy_obj_ interface{}, price float64)
}
--------------- proxy for github.com/SuperGod/indicator.CommonIndicator ---------------
func (*P_github_com_SuperGod_indicator_CommonIndicator) Indicator ¶ added in v1.0.1
func (P *P_github_com_SuperGod_indicator_CommonIndicator) Indicator() map[string]float64
func (*P_github_com_SuperGod_indicator_CommonIndicator) Result ¶ added in v1.0.1
func (P *P_github_com_SuperGod_indicator_CommonIndicator) Result() float64
func (*P_github_com_SuperGod_indicator_CommonIndicator) Update ¶ added in v1.0.1
func (P *P_github_com_SuperGod_indicator_CommonIndicator) Update(price float64)
type P_github_com_SuperGod_indicator_Crosser ¶ added in v1.0.1
type P_github_com_SuperGod_indicator_Crosser struct {
Object interface{}
FastResult_ func(interface{}) float64
SlowResult_ func(interface{}) float64
Update_ func(_proxy_obj_ interface{}, price float64)
}
--------------- proxy for github.com/SuperGod/indicator.Crosser ---------------
func (*P_github_com_SuperGod_indicator_Crosser) FastResult ¶ added in v1.0.1
func (P *P_github_com_SuperGod_indicator_Crosser) FastResult() float64
func (*P_github_com_SuperGod_indicator_Crosser) SlowResult ¶ added in v1.0.1
func (P *P_github_com_SuperGod_indicator_Crosser) SlowResult() float64
func (*P_github_com_SuperGod_indicator_Crosser) Update ¶ added in v1.0.1
func (P *P_github_com_SuperGod_indicator_Crosser) Update(price float64)
type P_github_com_SuperGod_indicator_Indicator ¶ added in v1.0.1
type P_github_com_SuperGod_indicator_Indicator struct {
Object interface{}
Result_ func(interface{}) float64
Update_ func(_proxy_obj_ interface{}, price float64)
}
--------------- proxy for github.com/SuperGod/indicator.Indicator ---------------
func (*P_github_com_SuperGod_indicator_Indicator) Result ¶ added in v1.0.1
func (P *P_github_com_SuperGod_indicator_Indicator) Result() float64
func (*P_github_com_SuperGod_indicator_Indicator) Update ¶ added in v1.0.1
func (P *P_github_com_SuperGod_indicator_Indicator) Update(price float64)
type P_github_com_SuperGod_indicator_Updater ¶ added in v1.0.1
type P_github_com_SuperGod_indicator_Updater struct {
Object interface{}
Update_ func(_proxy_obj_ interface{}, price float64)
}
--------------- proxy for github.com/SuperGod/indicator.Updater ---------------
func (*P_github_com_SuperGod_indicator_Updater) Update ¶ added in v1.0.1
func (P *P_github_com_SuperGod_indicator_Updater) Update(price float64)
type SMMA ¶
type SMMA struct {
MABase
// contains filtered or unexported fields
}
SMMA Smoothed Moving Average (SMMA)
type Stoch ¶
type Stoch struct {
// contains filtered or unexported fields
}
Stoch just test with StochRSI
type StochRSI ¶
type StochRSI struct {
// contains filtered or unexported fields
}
StochRSI result test with aicoin's bitmex data maybe it's difference with different website
func NewStochRSI ¶
func (*StochRSI) FastResult ¶
func (*StochRSI) SlowResult ¶
Click to show internal directories.
Click to hide internal directories.