From 3ab5d35b7702c343fde453b000e038ee61914dda Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 14 Sep 2022 18:44:38 +0800 Subject: [PATCH] bbgo: fix macdIndicators map initialization --- pkg/bbgo/standard_indicator_set.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/bbgo/standard_indicator_set.go b/pkg/bbgo/standard_indicator_set.go index c7463702b..52ecdddce 100644 --- a/pkg/bbgo/standard_indicator_set.go +++ b/pkg/bbgo/standard_indicator_set.go @@ -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), } }