mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
rsmaker: remove legacy state struct
This commit is contained in:
parent
16eeeb852c
commit
b75da154a8
|
@ -36,11 +36,6 @@ func init() {
|
||||||
bbgo.RegisterStrategy(ID, &Strategy{})
|
bbgo.RegisterStrategy(ID, &Strategy{})
|
||||||
}
|
}
|
||||||
|
|
||||||
type State struct {
|
|
||||||
Position *types.Position `json:"position,omitempty"`
|
|
||||||
ProfitStats types.ProfitStats `json:"profitStats,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type BollingerSetting struct {
|
type BollingerSetting struct {
|
||||||
types.IntervalWindow
|
types.IntervalWindow
|
||||||
BandWidth float64 `json:"bandWidth"`
|
BandWidth float64 `json:"bandWidth"`
|
||||||
|
@ -149,8 +144,6 @@ type Strategy struct {
|
||||||
orderExecutor *bbgo.GeneralOrderExecutor
|
orderExecutor *bbgo.GeneralOrderExecutor
|
||||||
book *types.StreamOrderBook
|
book *types.StreamOrderBook
|
||||||
|
|
||||||
state *State
|
|
||||||
|
|
||||||
groupID uint32
|
groupID uint32
|
||||||
|
|
||||||
// defaultBoll is the BOLLINGER indicator we used for predicting the price.
|
// defaultBoll is the BOLLINGER indicator we used for predicting the price.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user