gekko
gekko copied to clipboard
typo in CCI.js
in this this snippet of code from /methods/CCI.js some kind of string substitution went wrong:
log.methods('calculated CCI properties for candle:');
log.methods('\t', 'Price:\t\t\t', this.lastPrice);
log.methods('\t', 'CCI tp:\t', cci.tp.toFixed(8));
log.methods('\t', 'CCI tp/n:\t', cci.TP.result.toFixed(8));
log.methods('\t', 'CCI md:\t', cci.mean.toFixed(8));
if (typeof(cci.result) == 'boolean' )
log.methods('\t In sufficient data available.');
else
log.methods('\t', 'CCI:\t', cci.result.toFixed(2));
to fix it just substitute "log.methods" with "log.debug"
nice catch!