Versions in this module Expand all Collapse all v0 v0.1.2 Mar 10, 2021 Changes in this version + type MACrossStrategy struct + func (ma *MACrossStrategy) GetParams() []*K.Params + func (ma *MACrossStrategy) Once(ctx *K.Context, ohlc *K.OHLC) error + func (ma *MACrossStrategy) OrderEvent(orderEvent K.Event) + func (ma *MACrossStrategy) PerBar(k int, callback K.Callback) error + func (ma *MACrossStrategy) Update(k *int) error + type RMICrossStrategy struct + func (rmi *RMICrossStrategy) GetParams() []*K.Params + func (rmi *RMICrossStrategy) Once(ctx *K.Context, ohlc *K.OHLC) error + func (rmi *RMICrossStrategy) OrderEvent(orderEvent K.Event) + func (rmi *RMICrossStrategy) PerBar(k int, callback K.Callback) error + func (rmi *RMICrossStrategy) Update(k *int) error + type RebalanceStrat struct + ROC100 []float64 + func (rmi *RebalanceStrat) GetInterval() string + func (rmi *RebalanceStrat) GetParams() []*K.Params + func (rmi *RebalanceStrat) Once(ctx *K.Context, ohlc *K.OHLC) error + func (rmi *RebalanceStrat) OrderEvent(orderEvent K.Event) + func (rmi *RebalanceStrat) PerBar(k int, callback K.Callback) error + func (rmi *RebalanceStrat) Rebalance(k int, date time.Time, callback K.Callback) error + func (rmi *RebalanceStrat) Update(k *int) error