Documentation ¶
Index ¶
- type Candle
- func (c *Candle) Add(t platform.Trade) (filled bool)
- func (c *Candle) AppendRaw(time int64, open, high, low, close, volume Fixed)
- func (c *Candle) BufLen() int
- func (c *Candle) Count() int64
- func (c *Candle) History() History
- func (c *Candle) HistoryFloat32() HistoryFloat32
- func (c *Candle) Last() (time int64, open, high, low, close, volume Fixed)
- type Fixed
- type History
- type HistoryFloat32
- type OHLCV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Candle ¶
type Candle struct {
// contains filtered or unexported fields
}
func (*Candle) HistoryFloat32 ¶
func (c *Candle) HistoryFloat32() HistoryFloat32
type History ¶
type History struct { Time []int64 Open []Fixed High []Fixed Low []Fixed Close []Fixed Volume []Fixed }
func MakeHistory ¶
type HistoryFloat32 ¶
type HistoryFloat32 struct { Time []int64 Open []float32 High []float32 Low []float32 Close []float32 Volume []float32 }
func MakeHistoryFloat32 ¶
func MakeHistoryFloat32(cap int) HistoryFloat32
func (HistoryFloat32) Slice ¶
func (h HistoryFloat32) Slice(l, r int) HistoryFloat32
Click to show internal directories.
Click to hide internal directories.