mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
xmaker: reset position started time when hedge order is submitted
This commit is contained in:
parent
7f0b8f38d5
commit
fb96756460
|
@ -1297,6 +1297,8 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) {
|
||||||
} else {
|
} else {
|
||||||
s.coveredPosition.Add(quantity.Neg())
|
s.coveredPosition.Add(quantity.Neg())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.resetPositionStartTime()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Strategy) tradeRecover(ctx context.Context) {
|
func (s *Strategy) tradeRecover(ctx context.Context) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user