gekko icon indicating copy to clipboard operation
gekko copied to clipboard

typo in CCI.js

Open valeriominetti opened this issue 10 years ago • 1 comments

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"

valeriominetti avatar Jun 14 '16 10:06 valeriominetti

nice catch!

askmike avatar Jun 14 '16 11:06 askmike