Documentation ¶
Index ¶
Constants ¶
View Source
const ID = "bollpp"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BollingerSetting ¶
type BollingerSetting struct { types.IntervalWindow BandWidth float64 `json:"bandWidth"` }
type State ¶
type State struct { Position *types.Position `json:"position,omitempty"` ProfitStats bbgo.ProfitStats `json:"profitStats,omitempty"` }
type Strategy ¶
type Strategy struct { *bbgo.Graceful *bbgo.Notifiability *bbgo.Persistence StandardIndicatorSet *bbgo.StandardIndicatorSet Symbol string `json:"symbol"` Interval types.Interval `json:"interval"` Quantity fixedpoint.Value `json:"quantity"` MinSpread fixedpoint.Value `json:"minSpread"` Spread fixedpoint.Value `json:"spread"` DefaultBollinger *BollingerSetting `json:"defaultBollinger"` NeutralBollinger *BollingerSetting `json:"neutralBollinger"` // contains filtered or unexported fields }
func (*Strategy) Run ¶
func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, session *bbgo.ExchangeSession) error
func (*Strategy) Subscribe ¶
func (s *Strategy) Subscribe(session *bbgo.ExchangeSession)
Click to show internal directories.
Click to hide internal directories.