xmaker: apply math.Abs on signal for margin scale
This commit is contained in:
parent
ae47d3d3b7
commit
ac75767a11
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user