From b6bec34ad7043101c0b8c25fc0b978eb99a27750 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 9 Dec 2013 19:59:21 +0200 Subject: [PATCH] Fix for profit reporting --- logger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logger.js b/logger.js index 2373cf713..97481fd79 100644 --- a/logger.js +++ b/logger.js @@ -91,9 +91,9 @@ Logger.prototype.trackProfits = function(what, price, meta) { if(this.tracks === 1) return; - if(!this.verbose && what === 'SELL' && !this.config.backtest) + if(!this.verbose && what === 'SELL' && !this.config.backtest.enabled) this.report(); - else if(this.verbose && !this.config.backtest) + else if(this.verbose && !this.config.backtest.enabled) this.report(); }