Bug Fixed when balance out of range
This commit is contained in:
1 parent
ec2dc7dab2
commit
fc24c7ce66
1 file changed
+2
-2
+2
-2
@@ -1183,10 +1183,10 @@
|
||||
}
|
||||
} else {
|
||||
let stopRunningDate = new Date(candle.begin)
|
||||
if (balance < minimumBalance) {
|
||||
if (balance <= minimumBalance) {
|
||||
tradingSystem.error = "Min Balance @ " + stopRunningDate.toLocaleString()
|
||||
}
|
||||
if (balance > maximumBalance) {
|
||||
if (balance >= maximumBalance) {
|
||||
tradingSystem.error = "Max Balance @ " + stopRunningDate.toLocaleString()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user