bbgo: fix trailing stop binding

This commit is contained in:
c9s 2022-07-06 21:50:38 +08:00
parent 74593720a7
commit 3131786c02
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -81,4 +81,8 @@ func (m *ExitMethod) Bind(session *ExchangeSession, orderExecutor *GeneralOrderE
if m.CumulatedVolumeTakeProfit != nil {
m.CumulatedVolumeTakeProfit.Bind(session, orderExecutor)
}
if m.TrailingStop != nil {
m.TrailingStop.Bind(session, orderExecutor)
}
}