From ddbbf72f2481c5ccba6aed30bc72b11702f21063 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 28 Jun 2019 22:53:57 +0200 Subject: [PATCH] Improving error message --- Commons.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Commons.js b/Commons.js index 137123eb2..c9f62e8fe 100644 --- a/Commons.js +++ b/Commons.js @@ -805,7 +805,12 @@ exports.newCommons = function newCommons(bot, logger, UTILITIES) { } } } else { - tradingSystem.error = "Balance below the minimum. No more strategies will be executed." + if (balance < minimumBalance) { + tradingSystem.error = "Balance below the minimum." + } + if (balance > maximumBalance) { + tradingSystem.error = "Balance above the maximum." + } } }