Fix: nến
This commit is contained in:
parent
08d045ac07
commit
a127d860c9
4
index.js
4
index.js
@ -83,7 +83,7 @@ function roleEnterOrder(sessionID, lastResult) {
|
|||||||
let isNotBreakdowUp = true; // Xanh
|
let isNotBreakdowUp = true; // Xanh
|
||||||
let isNotBreakdowDown = true; // Đỏ
|
let isNotBreakdowDown = true; // Đỏ
|
||||||
listContinue.reverse().forEach((e, ind) => {
|
listContinue.reverse().forEach((e, ind) => {
|
||||||
if (ind) {
|
if (!ind) { // Xét các phiên chẵn
|
||||||
if (e.lastResult === 0) {
|
if (e.lastResult === 0) {
|
||||||
// Xanh
|
// Xanh
|
||||||
isNotBreakdowDown = false;
|
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
|
// 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' });
|
TeleGlobal.sendMessage(TELEGRAM_CHANNEL, `⌁ Thông ${CONFIG.countTradeContinue} lệnh ${coverLastResult(lastResult)} liên tiếp.`, { parse_mode: 'HTML' });
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user