Skip to content

Commit

Permalink
Merge pull request #6 from hubov/dev-live-trading
Browse files Browse the repository at this point in the history
Exit long position fix
  • Loading branch information
hubov authored Jul 3, 2022
2 parents f694959 + efe7c76 commit 2fd4164
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/strategy/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func SingalCloseLong() (result bool) {

func SingalExitLong() (result bool) {
var tests []bool
result = true
result = false

if DataExitLow[DataExitLowLen-1] <= LongStop() {
tests = append(tests, true)
Expand All @@ -256,8 +256,8 @@ func SingalExitLong() (result bool) {
}

for _, test := range tests {
if test == false {
result = false
if test == true {
result = true
}
}

Expand Down

0 comments on commit 2fd4164

Please sign in to comment.