From 84e9d2cb932bd9043d340fcc097546a1fe0b2513 Mon Sep 17 00:00:00 2001 From: Dung Nguyen <> Date: Thu, 3 Mar 2022 14:39:52 +0700 Subject: [PATCH] =?UTF-8?q?Fix=20h=C3=ADtory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 1a625d8..bb5692e 100644 --- a/index.js +++ b/index.js @@ -43,8 +43,8 @@ let dInWeb = null; // Ví tiền theo web */ const CONFIG = { autoTrade: true, - countTradeContinue: 2, // 7 lệnh thông thì đánh ngược lại - moneyEnterOrder: [5, 10, 20, 40, 80], // Nếu gặp 7 lệnh thông sẽ đánh ngược lại với từng mệnh giá này + countTradeContinue: 3, // 7 lệnh thông thì đánh ngược lại + moneyEnterOrder: [5, 5, 10, 20, 30], // Nếu gặp 7 lệnh thông sẽ đánh ngược lại với từng mệnh giá này maxHistory: 40, // Lưu lại lịch sử 40 phiên historys: [], // Lịch sử lệnh enterOrderList: [], // Lệnh đang vào @@ -456,7 +456,7 @@ Bạn sẽ vào lệnh ở phiên tiếp theo(${currentEnterOrder.sessionID})!`, let isNotBreakdowDown = true; // Đỏ let totalEnterOrderContinue = 0; let isStopTotal = false; - const historyReverse = CONFIG.historys.reverse(); + const historyReverse = JSON.parse(JSON.stringify(CONFIG.historys)).reverse(); historyReverse.forEach((e, ind) => { if (ind <= CONFIG.countTradeContinue) { if (e.lastResult === 0) {