mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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)
|
s.logger.Infof("aggregated signal: %f", signal)
|
||||||
|
|
||||||
|
if signal == 0.0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
scale, err := s.SignalMarginScale.Scale()
|
scale, err := s.SignalMarginScale.Scale()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user