Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix addMACD() when user specifies 'col' argument
Calling addMACD(col = ...) would throw the error below. R$ chartSeries(x) R$ addMACD(col = c("#FF0000", "#008000", "#BBBBBB","#FF0000")) Error in ans[ypos] <- rep(yes, length.out = len)[ypos] : replacement has length zero In addition: Warning message: In rep(yes, length.out = len) : 'x' is NULL so the result will be NULL 'col' was being set to NULL if it wasn't missing because there was no 'else' in the ternary-style if statement. Thanks to @nvalueanalytics for the report. Fixes #321.
- Loading branch information