From b3e04a68daa35c03fa0e204b1fef7688fdb883af Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 6 Jul 2022 21:50:38 +0800 Subject: [PATCH] bbgo: fix trailing stop binding --- pkg/bbgo/exit.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/bbgo/exit.go b/pkg/bbgo/exit.go index 91c0d1b2f..a88e3f44d 100644 --- a/pkg/bbgo/exit.go +++ b/pkg/bbgo/exit.go @@ -75,4 +75,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) + } }