프롬프트 수정

This commit is contained in:
2025-08-31 00:50:07 +09:00
parent 6a1e3e2b21
commit e93624358b

View File

@@ -136,6 +136,8 @@ async function onNewBar(bar) {
position: { position: {
side: position.side, side: position.side,
entry: position.entry, entry: position.entry,
sl: position.sl,
tp: position.tp,
qty: position.qty qty: position.qty
} }
}); });
@@ -173,7 +175,7 @@ function enterMarket(sig) {
function checkExit() { function checkExit() {
if (!position || curPrice === null) return; 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; let exit = null;
if (side === 'LONG') { if (side === 'LONG') {