diff --git a/plugins/tradingAdvisor/baseTradingMethod.js b/plugins/tradingAdvisor/baseTradingMethod.js index f08e71ece..e7a72fced 100644 --- a/plugins/tradingAdvisor/baseTradingMethod.js +++ b/plugins/tradingAdvisor/baseTradingMethod.js @@ -305,7 +305,7 @@ Base.prototype.addIndicator = function(name, type, parameters) { if(this.setup) util.die('Can only add indicators in the init method!'); - this.indicators[name] = new Indicators[type](parameters); + return this.indicators[name] = new Indicators[type](parameters); // some indicators need a price stream, others need full candles }