mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
exit/hhllStop: readability
This commit is contained in:
parent
43c49aa41d
commit
936a3c95d9
|
@ -64,8 +64,11 @@ func (s *HigherHighLowerLowStop) updateActivated(position *types.Position, close
|
|||
if position.IsClosed() || position.IsDust(closePrice) {
|
||||
|
||||
s.activated = false
|
||||
return
|
||||
|
||||
} else if s.activated {
|
||||
}
|
||||
|
||||
if s.activated {
|
||||
|
||||
if position.IsLong() {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user