Documentation ¶
Index ¶
- Variables
- func Cross(obj1 interface{}, obj2 interface{}) int
- type AdxState
- type BarEnv
- type CrossLog
- type Kline
- type Series
- func ADX(high *Series, low *Series, close *Series, period int) *Series
- func ATR(high *Series, low *Series, close *Series, period int) *Series
- func BBANDS(obj *Series, period, stdUp, stdDn int) *Series
- func EMA(obj *Series, period int) *Series
- func EMABy(obj *Series, period int, initType int) *Series
- func HeikinAshi(e *BarEnv) *Series
- func Highest(obj *Series, period int) *Series
- func KDJ(high *Series, low *Series, close *Series, period int, sm1 int, sm2 int) *Series
- func KDJBy(high *Series, low *Series, close *Series, period int, sm1 int, sm2 int, ...) *Series
- func Lowest(obj *Series, period int) *Series
- func MACD(obj *Series, fast int, slow int, smooth int) *Series
- func MACDBy(obj *Series, fast int, slow int, smooth int, initType int) *Series
- func RMA(obj *Series, period int) *Series
- func RMABy(obj *Series, period int, initType int, initVal float64) *Series
- func ROC(obj *Series, period int) *Series
- func RSI(obj *Series, period int) *Series
- func SMA(obj *Series, period int) *Series
- func StdDev(obj *Series, period int) *Series
- func StdDevBy(obj *Series, period int, ddof int) *Series
- func Sum(obj *Series, period int) *Series
- func TD(obj *Series) *Series
- func TR(high *Series, low *Series, close *Series) *Series
- func (s *Series) Abs() *Series
- func (s *Series) Add(obj interface{}) *Series
- func (s *Series) Append(obj interface{}) *Series
- func (s *Series) Cached() bool
- func (s *Series) Cut(keepNum int)
- func (s *Series) Get(i int) float64
- func (s *Series) Len() int
- func (s *Series) Mul(obj interface{}) *Series
- func (s *Series) Range(start, stop int) []float64
- func (s *Series) Sub(obj interface{}) *Series
- type XState
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type BarEnv ¶
type BarEnv struct { TimeStart int64 TimeStop int64 Exchange string MarketType string Symbol string TimeFrame string TFMSecs int64 //周期的毫秒间隔 BarNum int MaxCache int Open *Series High *Series Low *Series Close *Series Volume *Series Items map[string]*Series XLogs map[string]*CrossLog Data map[string]interface{} }
func (*BarEnv) TrimOverflow ¶
func (e *BarEnv) TrimOverflow()
type Series ¶
type Series struct { Env *BarEnv Data []float64 Cols []*Series Key string Time int64 More interface{} }
Click to show internal directories.
Click to hide internal directories.