rename st = store

This commit is contained in:
c9s 2022-06-09 12:34:12 +08:00
parent fc0457cefe
commit 4b08e93758
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -208,9 +208,9 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
s.tradeCollector.BindStream(session.UserDataStream)
iw := types.IntervalWindow{Window: s.PivotLength, Interval: s.Interval}
st, _ := session.MarketDataStore(s.Symbol)
store, _ := session.MarketDataStore(s.Symbol)
s.pivot = &indicator.Pivot{IntervalWindow: iw}
s.pivot.Bind(st)
s.pivot.Bind(store)
s.LastLow = fixedpoint.Zero