From a127d860c91375bcd91a75a39efa710bf3a53985 Mon Sep 17 00:00:00 2001 From: Dung Nguyen <> Date: Wed, 23 Feb 2022 23:19:40 +0700 Subject: [PATCH] =?UTF-8?q?Fix:=20n=E1=BA=BFn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index aa86ceb..ff58653 100644 --- a/index.js +++ b/index.js @@ -83,7 +83,7 @@ function roleEnterOrder(sessionID, lastResult) { let isNotBreakdowUp = true; // Xanh let isNotBreakdowDown = true; // Đỏ listContinue.reverse().forEach((e, ind) => { - if (ind) { + if (!ind) { // Xét các phiên chẵn if (e.lastResult === 0) { // Xanh isNotBreakdowDown = false; @@ -93,7 +93,7 @@ function roleEnterOrder(sessionID, lastResult) { } }); - if ((isNotBreakdowUp || isNotBreakdowDown) && CONFIG.historys.length >= CONFIG.countTradeContinue) { + if ((isNotBreakdowUp || isNotBreakdowDown) && CONFIG.historys.length >= CONFIG.countTradeContinue * 2) { // Thông 7 lệnh liên tiếp TeleGlobal.sendMessage(TELEGRAM_CHANNEL, `⌁ Thông ${CONFIG.countTradeContinue} lệnh ${coverLastResult(lastResult)} liên tiếp.`, { parse_mode: 'HTML' });