diff --git a/pkg/strategy/ccinr/strategy.go b/pkg/strategy/ccinr/strategy.go index 2cbcfef..18d927d 100644 --- a/pkg/strategy/ccinr/strategy.go +++ b/pkg/strategy/ccinr/strategy.go @@ -310,6 +310,9 @@ func (s *Strategy) notifyProfit(ctx context.Context, symbol string) { s.EndTrade[symbol] = []types.Trade{} s.OpenQuantity[symbol] = fixedpoint.Value(0) s.EndQuantity[symbol] = fixedpoint.Value(0) + + // 记得取消订单 + s.cancelOrders(ctx, symbol) } func (s *Strategy) Run(ctx context.Context, orderExecutor qbtrade.OrderExecutor, session *qbtrade.ExchangeSession) error {