mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
xmaker: apply math.Abs on signal for margin scale
This commit is contained in:
parent
b87213827e
commit
d501e8ff4d
|
@ -276,7 +276,7 @@ func (s *Strategy) applySignalMargin(ctx context.Context, quote *Quote) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
margin := scale.Call(signal)
|
margin := scale.Call(math.Abs(signal))
|
||||||
|
|
||||||
s.logger.Infof("signal margin: %f", margin)
|
s.logger.Infof("signal margin: %f", margin)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user