diff --git a/pkg/strategy/xmaker/strategy.go b/pkg/strategy/xmaker/strategy.go index 879df048b..d2f23f3e0 100644 --- a/pkg/strategy/xmaker/strategy.go +++ b/pkg/strategy/xmaker/strategy.go @@ -276,7 +276,7 @@ func (s *Strategy) applySignalMargin(ctx context.Context, quote *Quote) error { return err } - margin := scale.Call(signal) + margin := scale.Call(math.Abs(signal)) s.logger.Infof("signal margin: %f", margin)