mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
Compare commits
2 Commits
b87213827e
...
cff7103ece
Author | SHA1 | Date | |
---|---|---|---|
|
cff7103ece | ||
|
d501e8ff4d |
|
@ -3,6 +3,7 @@ package xmaker
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"math"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
@ -276,7 +277,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