Skip to content

Commit

Permalink
Update loss parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
djkazic committed Nov 23, 2023
1 parent 1d028ef commit 0f729c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ async function loadModules() {
`Closed profitable short on LNM: fee ${position.opening_fee}, price ${position.price}, pl ${position.pl}`
);
changedPos = true;
} else if (position.pl < -19) {
} else if (position.pl < -20) {
logger(
"error",
`CLOSING SHORT POSITION AT LOSS ${JSON.stringify(position)}`
Expand All @@ -290,7 +290,7 @@ async function loadModules() {
`Closed profitable long on LNM: fee ${position.opening_fee}, price ${position.price}, pl ${position.pl}`
);
changedPos = true;
} else if (position.pl < -19) {
} else if (position.pl < -20) {
logger(
"error",
`CLOSING LONG POSITION AT LOSS ${JSON.stringify(position)}`
Expand Down

0 comments on commit 0f729c1

Please sign in to comment.