diff --git a/index.js b/index.js index d1c0430..a5ba6b4 100644 --- a/index.js +++ b/index.js @@ -163,7 +163,7 @@ function enterMarket(sig) { entry: curPrice, qty: +qty, sl: sig.sl, - tp: sig.tp, + tp: sig.side === 'LONG' ? sig.tp - (sig.tp * 0.0005) : sig.tp + (sig.tp * 0.0005), openTime: Date.now(), fee, initialBalance: balance + fee