-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
lib/sma.js
Outdated
return sum + cur | ||
}, 0) | ||
|
||
s.period[key] = SMA / lenght |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: lenght -> length
Besides the typo, you could also rename the strategy name in backtester.js, too.
|
can i fix the typo and re commit the pr? how can i fix it?
this happens a lot... screw the length
…On Sat, Jul 8, 2017, 2:33 PM fasheng ***@***.***> wrote:
Besides the typo, you could also rename the strategy name in
backtester.js, too.
Just rename all rsi_macd to srsi_macd:
sed -i 's/rsi_macd/srsi_macd/g' backtester.js
https://github.com/carlos8f/zenbot/blob/master/scripts/auto_backtester/backtester.js#L75
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#369 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ALhf8mK8uEDCY5krSWuu2Asmyk1Phb6Fks5sL4UWgaJpZM4ORufw>
.
|
Yes, just edit the file and |
And you must edit |
lib/sma.js
Outdated
let SMA = s.lookback | ||
.slice(0, length) | ||
.reduce((sum, cur) => { | ||
return sum + cur |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return sum + cur
-> return sum + cur[source_key]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* updates to srsi_macd * rename strategy to srsi_macd * srsi_macd and sma indicator tweaks * fixed type in length * fixes
Renamed and tweaked a bit the strategy and a small fix to the SMA file.