mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-15 03:23:52 +00:00
xmaker: show signal margin range
This commit is contained in:
parent
022dcdf745
commit
cea59ef9cf
|
@ -1599,9 +1599,19 @@ func (s *Strategy) CrossRun(
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if solveErr := scale.Solve(); solveErr != nil {
|
if solveErr := scale.Solve(); solveErr != nil {
|
||||||
return solveErr
|
return solveErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
minAdditionalMargin := scale.Call(0.0)
|
||||||
|
middleAdditionalMargin := scale.Call(1.0)
|
||||||
|
maxAdditionalMargin := scale.Call(2.0)
|
||||||
|
s.logger.Infof("signal margin range: %.2f%% @ 0.0 ~ %.2f%% @ 1.0 ~ %.2f%% @ 2.0",
|
||||||
|
minAdditionalMargin*100.0,
|
||||||
|
middleAdditionalMargin*100.0,
|
||||||
|
maxAdditionalMargin*100.0)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, signalConfig := range s.SignalConfigList {
|
for _, signalConfig := range s.SignalConfigList {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user