techsignal: fix ma subscription

This commit is contained in:
c9s 2021-10-18 09:00:56 +08:00
parent c36bbd6c35
commit ebc61de946

View File

@ -70,6 +70,10 @@ func (s *Strategy) Subscribe(session *bbgo.ExchangeSession) {
session.Subscribe(types.KLineChannel, s.Symbol, types.SubscribeOptions{
Interval: string(detection.Interval),
})
session.Subscribe(types.KLineChannel, s.Symbol, types.SubscribeOptions{
Interval: string(detection.MovingAverageInterval),
})
}
}