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

Commit 02c9e87

Browse files
committed
always use requiredHistory from the config
1 parent 3a9c76e commit 02c9e87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/tradingAdvisor/baseTradingMethod.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ var Base = function(settings) {
6868
// let's run the implemented starting point
6969
this.init();
7070

71-
//if no requiredHistory was provided, set default from tradingAdvisor
72-
if (!_.isNumber(this.requiredHistory)){
73-
this.requiredHistory = config.tradingAdvisor.historySize;
71+
if(_.isNumber(this.requiredHistory)){ {
72+
log.debug('Ignoring strategy\'s required history, using the "config.tradingAdvisor.historySize" instead.');
7473
}
74+
this.requiredHistory = config.tradingAdvisor.historySize;
7575

7676
if(!config.debug || !this.log)
7777
this.log = function() {};

0 commit comments

Comments
 (0)