Skip to content

Commit

Permalink
Fix talib bbands calculation (returned undefined result)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Semyonov committed Dec 10, 2016
1 parent fbdaa87 commit 3ee4003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/talib.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ methods.bbands = {
name: "BBANDS",
inReal: data.close,
startIdx: 0,
endIdx: data.length - 1,
endIdx: data.close.length - 1,
optInTimePeriod: params.optInTimePeriod,
optInNbDevUp: params.optInNbDevUp,
optInNbDevDn: params.optInNbDevDn,
Expand Down

0 comments on commit 3ee4003

Please sign in to comment.