mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
xmaker: check 0.0
This commit is contained in:
parent
7c4b3e81df
commit
ec80cbfd9f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user