Skip to content

Commit

Permalink
Fixed a minor bug
Browse files Browse the repository at this point in the history
The bug were a wrong placement of ...

in RSI and MA indicators
  • Loading branch information
serkor1 committed Oct 13, 2023
1 parent 3d0368c commit af935b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/chart_indicators.R
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ addMA <- function(plot, FUN = TTR::SMA, ...) {
FUN = FUN
)
quote_ <- toDF(foo(
quote[,'Close']
),
...
quote[,'Close'],
...
)
)

colnames(quote_)[!grepl(colnames(quote_), pattern = 'Index', ignore.case =TRUE)] <- 'value'
Expand Down Expand Up @@ -333,7 +333,8 @@ addRSI <- function(

quoteDF <- toDF(
TTR::RSI(
quote[,'Close']
quote[,'Close'],
...
)
)

Expand Down

0 comments on commit af935b6

Please sign in to comment.