mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bbgo: fix trailing stop binding
This commit is contained in:
parent
d86338d6e6
commit
b3e04a68da
|
@ -75,4 +75,8 @@ func (m *ExitMethod) Bind(session *ExchangeSession, orderExecutor *GeneralOrderE
|
||||||
if m.CumulatedVolumeTakeProfit != nil {
|
if m.CumulatedVolumeTakeProfit != nil {
|
||||||
m.CumulatedVolumeTakeProfit.Bind(session, orderExecutor)
|
m.CumulatedVolumeTakeProfit.Bind(session, orderExecutor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if m.TrailingStop != nil {
|
||||||
|
m.TrailingStop.Bind(session, orderExecutor)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user