From 0ccf80353d83981c0fb3cd4b5b4aac5756ae8877 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 11 Jul 2019 18:43:43 +0200 Subject: [PATCH] FIX Message Type --- Commons.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commons.js b/Commons.js index 89809d74e..e703c358c 100644 --- a/Commons.js +++ b/Commons.js @@ -1489,9 +1489,9 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { orderId++; } else { if (type === '"Close@TakeProfit"' || type === '"Close@StopLoss"') { - messageType = MESSAGE_TYPE.OrderUpdate; - } else { messageType = MESSAGE_TYPE.OrderClose; + } else { + messageType = MESSAGE_TYPE.OrderUpdate; } }