From 0f729c177307edfbd35d5e352021bcbe04cb9cbb Mon Sep 17 00:00:00 2001 From: djkazic Date: Thu, 23 Nov 2023 18:29:02 -0500 Subject: [PATCH] Update loss parameter --- main.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.mjs b/main.mjs index e7618e8..1d968cb 100644 --- a/main.mjs +++ b/main.mjs @@ -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)}` @@ -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)}`