diff --git a/pkg/strategy/ccinr/strategy.go b/pkg/strategy/ccinr/strategy.go index 17ffbff..0daa2cf 100644 --- a/pkg/strategy/ccinr/strategy.go +++ b/pkg/strategy/ccinr/strategy.go @@ -426,7 +426,7 @@ func (s *Strategy) isTradeTime(ctx context.Context) bool { now := time.Now().In(location) hour := now.Hour() - return hour >= s.TradeStartHour && hour < s.TradeEndHour + return !(hour >= s.TradeStartHour && hour < s.TradeEndHour) } func (s *Strategy) isPauseTrade(ctx context.Context) bool {