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 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 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.