exit/hhllStop: readability

This commit is contained in:
Andy Cheng 2023-06-30 13:55:07 +08:00
parent 43c49aa41d
commit 936a3c95d9
No known key found for this signature in database
GPG Key ID: 936427CF651A9D28

View File

@ -64,8 +64,11 @@ func (s *HigherHighLowerLowStop) updateActivated(position *types.Position, close
if position.IsClosed() || position.IsDust(closePrice) { if position.IsClosed() || position.IsDust(closePrice) {
s.activated = false s.activated = false
return
} else if s.activated { }
if s.activated {
if position.IsLong() { if position.IsLong() {