Documentation ¶
Overview ¶
Package GoTrade implements
Index ¶
- Constants
- func UseClosePrice(dataItem DOHLCV) float64
- func UseHighPrice(dataItem DOHLCV) float64
- func UseLowPrice(dataItem DOHLCV) float64
- func UseOpenPrice(dataItem DOHLCV) float64
- func UseVolume(dataItem DOHLCV) float64
- type DOHLCV
- type DOHLCVDataItem
- type DOHLCVDataSelectionFunc
- type DOHLCVStream
- func (p *DOHLCVStream) AddTickSubscription(subscriber DOHLCVTickReceiver)
- func (p *DOHLCVStream) MaxDate() time.Time
- func (p *DOHLCVStream) MaxValue() float64
- func (p *DOHLCVStream) MinDate() time.Time
- func (p *DOHLCVStream) MinValue() float64
- func (p *DOHLCVStream) ReceiveTick(tickData DOHLCV)
- func (p *DOHLCVStream) RemoveTickSubscription(subscriber DOHLCVTickReceiver)
- type DOHLCVStreamSubscriber
- type DOHLCVStreamTickReceiver
- type DOHLCVTickReceiver
- type DataStreamHolder
- type DateStreamHolder
- type InterDayDOHLCVStream
- type IntraDayDOHLCVStream
- type OHLC
- type OHLCV
- type TickReceiver
Constants ¶
View Source
const ( MinuteBar intraDayBarType = iota DailyBar interDayBarType = iota WeeklyBar MonthlyBar )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DOHLCVDataItem ¶
type DOHLCVDataItem struct {
// contains filtered or unexported fields
}
func NewDOHLCVDataItem ¶
func (*DOHLCVDataItem) C ¶
func (di *DOHLCVDataItem) C() float64
func (*DOHLCVDataItem) D ¶
func (di *DOHLCVDataItem) D() time.Time
func (*DOHLCVDataItem) H ¶
func (di *DOHLCVDataItem) H() float64
func (*DOHLCVDataItem) L ¶
func (di *DOHLCVDataItem) L() float64
func (*DOHLCVDataItem) O ¶
func (di *DOHLCVDataItem) O() float64
func (*DOHLCVDataItem) V ¶
func (di *DOHLCVDataItem) V() float64
type DOHLCVDataSelectionFunc ¶
A function that selects which data property to use from a DOHLCV data structure
type DOHLCVStream ¶
type DOHLCVStream struct { Data []DOHLCV // contains filtered or unexported fields }
func (*DOHLCVStream) AddTickSubscription ¶
func (p *DOHLCVStream) AddTickSubscription(subscriber DOHLCVTickReceiver)
func (*DOHLCVStream) MaxDate ¶
func (p *DOHLCVStream) MaxDate() time.Time
func (*DOHLCVStream) MaxValue ¶
func (p *DOHLCVStream) MaxValue() float64
func (*DOHLCVStream) MinDate ¶
func (p *DOHLCVStream) MinDate() time.Time
func (*DOHLCVStream) MinValue ¶
func (p *DOHLCVStream) MinValue() float64
func (*DOHLCVStream) ReceiveTick ¶
func (p *DOHLCVStream) ReceiveTick(tickData DOHLCV)
func (*DOHLCVStream) RemoveTickSubscription ¶
func (p *DOHLCVStream) RemoveTickSubscription(subscriber DOHLCVTickReceiver)
type DOHLCVStreamSubscriber ¶
type DOHLCVStreamSubscriber interface {
AddTickSubscription(subscriber DOHLCVTickReceiver)
}
type DOHLCVStreamTickReceiver ¶
type DOHLCVStreamTickReceiver interface {
ReceiveTick(tickData DOHLCV)
}
type DOHLCVTickReceiver ¶
Consumer of DOHLCV Ticks
type DataStreamHolder ¶
type InterDayDOHLCVStream ¶
type InterDayDOHLCVStream struct { *DOHLCVStream // contains filtered or unexported fields }
func NewDailyDOHLCVStream ¶
func NewDailyDOHLCVStream() *InterDayDOHLCVStream
func NewInterDayDOHLCVStream ¶
func NewInterDayDOHLCVStream(streamBarType interDayBarType) *InterDayDOHLCVStream
func NewMonthlyDOHLCVStream ¶
func NewMonthlyDOHLCVStream() *InterDayDOHLCVStream
func NewWeeklyDOHLCVStream ¶
func NewWeeklyDOHLCVStream() *InterDayDOHLCVStream
type IntraDayDOHLCVStream ¶
type IntraDayDOHLCVStream struct { *DOHLCVStream // contains filtered or unexported fields }
func NewIntraDayDOHLCVStream ¶
func NewIntraDayDOHLCVStream(barIntervalInMins int) *IntraDayDOHLCVStream
type TickReceiver ¶
Consumer of a float tick
Directories ¶
Path | Synopsis |
---|---|
import "github.com/thetruetrade/gotrade" Package indicators provides a range of technical trading indicators.
|
import "github.com/thetruetrade/gotrade" Package indicators provides a range of technical trading indicators. |
Click to show internal directories.
Click to hide internal directories.