From e93624358b3f5e76c09195f71b3b6f81e855f08f Mon Sep 17 00:00:00 2001 From: bangae1 Date: Sun, 31 Aug 2025 00:50:07 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=AC=ED=94=84=ED=8A=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 939ed18..51afa5e 100644 --- a/index.js +++ b/index.js @@ -136,6 +136,8 @@ async function onNewBar(bar) { position: { side: position.side, entry: position.entry, + sl: position.sl, + tp: position.tp, qty: position.qty } }); @@ -173,7 +175,7 @@ function enterMarket(sig) { function checkExit() { if (!position || curPrice === null) return; - const { side, entry, qty, sl, tp } = position; + const { id, side, entry, qty, sl, tp, fe, ib} = position; let exit = null; if (side === 'LONG') {