Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Return newly created indicator instance in addIndicator method #1871

Merged
merged 4 commits into from
Feb 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/tradingAdvisor/baseTradingMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down