xmaker: check 0.0

This commit is contained in:
c9s 2024-08-30 17:52:28 +08:00
parent 7c4b3e81df
commit ec80cbfd9f
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -267,6 +267,10 @@ func (s *Strategy) applySignalMargin(ctx context.Context, quote *Quote) error {
s.logger.Infof("aggregated signal: %f", signal)
if signal == 0.0 {
return nil
}
scale, err := s.SignalMarginScale.Scale()
if err != nil {
return err