mirror of
https://git.hmsn.ink/coin/bot.git
synced 2026-03-19 15:55:01 +09:00
프롬프트 수정
This commit is contained in:
4
index.js
4
index.js
@@ -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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user