bbgo: fix macdIndicators map initialization

This commit is contained in:
c9s 2022-09-14 18:44:38 +08:00
parent 67b526120a
commit 3ab5d35b77
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -42,11 +42,12 @@ type indicatorKey struct {
func NewStandardIndicatorSet(symbol string, stream types.Stream, store *MarketDataStore) *StandardIndicatorSet {
return &StandardIndicatorSet{
Symbol: symbol,
store: store,
stream: stream,
iwIndicators: make(map[indicatorKey]indicator.KLinePusher),
iwbIndicators: make(map[types.IntervalWindowBandWidth]*indicator.BOLL),
Symbol: symbol,
store: store,
stream: stream,
iwIndicators: make(map[indicatorKey]indicator.KLinePusher),
iwbIndicators: make(map[types.IntervalWindowBandWidth]*indicator.BOLL),
macdIndicators: make(map[indicator.MACDConfig]*indicator.MACD),
}
}