Documentation ¶
Index ¶
- func CalculateKLinesPMR(allKLines []types.KLine, window int) float64
- func CalculateKLinesPVD(allKLines []types.KLine, window int) float64
- type KLineValueMapper
- type MOM
- func (inc *MOM) Bind(updater indicator.KLineWindowUpdater)
- func (inc *MOM) CalculateAndUpdate(allKLines []types.KLine)
- func (inc *MOM) EmitUpdate(val float64)
- func (inc *MOM) Index(i int) float64
- func (inc *MOM) Last(i int) float64
- func (inc *MOM) Length() int
- func (inc *MOM) OnUpdate(cb func(val float64))
- func (inc *MOM) PushK(k types.KLine)
- func (inc *MOM) Update(open, close float64)
- type PMR
- func (inc *PMR) Bind(updater indicator.KLineWindowUpdater)
- func (inc *PMR) CalculateAndUpdate(allKLines []types.KLine)
- func (inc *PMR) EmitUpdate(value float64)
- func (inc *PMR) Index(i int) float64
- func (inc *PMR) Last(i int) float64
- func (inc *PMR) Length() int
- func (inc *PMR) OnUpdate(cb func(value float64))
- func (inc *PMR) PushK(k types.KLine)
- func (inc *PMR) Update(price float64)
- type PVD
- func (inc *PVD) Bind(updater indicator.KLineWindowUpdater)
- func (inc *PVD) CalculateAndUpdate(allKLines []types.KLine)
- func (inc *PVD) EmitUpdate(value float64)
- func (inc *PVD) Index(i int) float64
- func (inc *PVD) Last(i int) float64
- func (inc *PVD) Length() int
- func (inc *PVD) OnUpdate(cb func(value float64))
- func (inc *PVD) PushK(k types.KLine)
- func (inc *PVD) Update(price float64, volume float64)
- type RR
- func (inc *RR) Bind(updater indicator.KLineWindowUpdater)
- func (inc *RR) BindK(target indicator.KLineClosedEmitter, symbol string, interval types.Interval)
- func (inc *RR) CalculateAndUpdate(allKLines []types.KLine)
- func (inc *RR) EmitUpdate(value float64)
- func (inc *RR) Index(i int) float64
- func (inc *RR) Last(i int) float64
- func (inc *RR) Length() int
- func (inc *RR) LoadK(allKLines []types.KLine)
- func (inc *RR) OnUpdate(cb func(value float64))
- func (inc *RR) PushK(k types.KLine)
- func (inc *RR) Update(price float64)
- type VMOM
- func (inc *VMOM) Bind(updater indicator.KLineWindowUpdater)
- func (inc *VMOM) CalculateAndUpdate(allKLines []types.KLine)
- func (inc *VMOM) EmitUpdate(val float64)
- func (inc *VMOM) Index(i int) float64
- func (inc *VMOM) Last(i int) float64
- func (inc *VMOM) Length() int
- func (inc *VMOM) OnUpdate(cb func(val float64))
- func (inc *VMOM) PushK(k types.KLine)
- func (inc *VMOM) Update(volume float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KLineValueMapper ¶
type MOM ¶
type MOM struct { types.SeriesBase types.IntervalWindow // Values Values floats.Slice LastValue float64 EndTime time.Time UpdateCallbacks []func(val float64) // contains filtered or unexported fields }
func (*MOM) Bind ¶
func (inc *MOM) Bind(updater indicator.KLineWindowUpdater)
func (*MOM) CalculateAndUpdate ¶
func (*MOM) EmitUpdate ¶
type PMR ¶
type PMR struct { types.IntervalWindow types.SeriesBase Values floats.Slice SMA *indicator.SMA EndTime time.Time // contains filtered or unexported fields }
func (*PMR) Bind ¶
func (inc *PMR) Bind(updater indicator.KLineWindowUpdater)
func (*PMR) CalculateAndUpdate ¶
func (*PMR) EmitUpdate ¶
type PVD ¶
type PVD struct { types.IntervalWindow types.SeriesBase Values floats.Slice Prices *types.Queue Volumes *types.Queue EndTime time.Time // contains filtered or unexported fields }
func (*PVD) Bind ¶
func (inc *PVD) Bind(updater indicator.KLineWindowUpdater)
func (*PVD) CalculateAndUpdate ¶
func (*PVD) EmitUpdate ¶
type RR ¶
type RR struct { types.IntervalWindow types.SeriesBase Values floats.Slice EndTime time.Time // contains filtered or unexported fields }
func (*RR) Bind ¶
func (inc *RR) Bind(updater indicator.KLineWindowUpdater)
func (*RR) CalculateAndUpdate ¶
func (*RR) EmitUpdate ¶
type VMOM ¶
type VMOM struct { types.SeriesBase types.IntervalWindow // Values Values floats.Slice LastValue float64 EndTime time.Time UpdateCallbacks []func(val float64) // contains filtered or unexported fields }
func (*VMOM) Bind ¶
func (inc *VMOM) Bind(updater indicator.KLineWindowUpdater)
func (*VMOM) CalculateAndUpdate ¶
func (*VMOM) EmitUpdate ¶
Click to show internal directories.
Click to hide internal directories.