Documentation
¶
Index ¶
- Variables
- func NewRunnerExport(file string) (r engine.Runner, err error)
- type CallInfo
- func (ci *CallInfo) Init(engine bengine.Engine, data common.ParamData) (err error)
- func (ci *CallInfo) OnCandle(candle *Candle) (err error)
- func (ci *CallInfo) OnDepth(depth *Depth) (err error)
- func (ci *CallInfo) OnEvent(e *Event) (err error)
- func (ci *CallInfo) OnPosition(pos, price float64) (err error)
- func (ci *CallInfo) OnTrade(trade *Trade) (err error)
- func (ci *CallInfo) OnTradeMarket(trade *Trade) (err error)
- func (ci *CallInfo) Param() (paramInfo []common.Param, err error)
- type P_CommonIndicator
- type P_Crosser
- type P_Indicator
- type P_Updater
- type Runner
- func (r *Runner) GetName() string
- func (r *Runner) Init(engine bengine.Engine, params common.ParamData) (err error)
- func (r *Runner) OnCandle(candle *Candle) (err error)
- func (r *Runner) OnDepth(depth *Depth) (err error)
- func (r *Runner) OnEvent(e *Event) (err error)
- func (r *Runner) OnPosition(pos, price float64) (err error)
- func (r *Runner) OnTrade(trade *Trade) (err error)
- func (r *Runner) OnTradeMarket(trade *Trade) (err error)
- func (r *Runner) Param() (paramInfo []common.Param, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoMethod = errors.New("no such method")
)
Functions ¶
Types ¶
type CallInfo ¶
type CallInfo struct {
// contains filtered or unexported fields
}
func NewCallInfo ¶
func (*CallInfo) OnPosition ¶
func (*CallInfo) OnTradeMarket ¶ added in v0.0.5
type P_CommonIndicator ¶ added in v0.0.6
type P_CommonIndicator struct {
Object interface{}
Indicator_ func(interface{}) map[string]float64
Result_ func(interface{}) float64
Update_ func(_proxy_obj_ interface{}, price float64)
}
--------------- proxy for github.com/ztrade/indicator.CommonIndicator ---------------
func (*P_CommonIndicator) Indicator ¶ added in v0.0.6
func (P *P_CommonIndicator) Indicator() map[string]float64
func (*P_CommonIndicator) Result ¶ added in v0.0.6
func (P *P_CommonIndicator) Result() float64
func (*P_CommonIndicator) Update ¶ added in v0.0.6
func (P *P_CommonIndicator) Update(price float64)
type P_Crosser ¶ added in v0.0.6
type P_Crosser struct {
Object interface{}
FastResult_ func(interface{}) float64
SlowResult_ func(interface{}) float64
Update_ func(_proxy_obj_ interface{}, price float64)
}
--------------- proxy for github.com/ztrade/indicator.Crosser ---------------
func (*P_Crosser) FastResult ¶ added in v0.0.6
func (*P_Crosser) SlowResult ¶ added in v0.0.6
type P_Indicator ¶ added in v0.0.6
type P_Indicator struct {
Object interface{}
Result_ func(interface{}) float64
Update_ func(_proxy_obj_ interface{}, price float64)
}
--------------- proxy for github.com/ztrade/indicator.Indicator ---------------
func (*P_Indicator) Result ¶ added in v0.0.6
func (P *P_Indicator) Result() float64
func (*P_Indicator) Update ¶ added in v0.0.6
func (P *P_Indicator) Update(price float64)
type P_Updater ¶ added in v0.0.6
type P_Updater struct {
Object interface{}
Update_ func(_proxy_obj_ interface{}, price float64)
}
--------------- proxy for github.com/ztrade/indicator.Updater ---------------
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) OnPosition ¶
func (*Runner) OnTradeMarket ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.