python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why do Close and HLC have different methods to share data?
When I compare the 2 methods, SMA() needs close price as first parameter in xts format and DonchianChannel() needs HL in xts format. However the usage is Cl(mktdata) for SMA vs HLC(mktdata)[, 1:2] f...
junkone
Votes: 0
Answers: 1
Error in using ATR as an indicator in quantstrat
Question 1:
I am trying to use the ATR indicator in quantstrat. I am getting error
Error in try.xts(HLC, error = as.matrix) :
argument "HLC" is missing, with no default
add.indicator(strateg...
junkone
Votes: 0
Answers: 1
how to add add_TA with the correct datacolumn
I have 2 symbols in my backtest. I am adding indicator donchianchannel. However when i plot it, add_TA( mktdata$high.DCH, col = 6, lwd = 1.5,on=TRUE) does not pass the associated symbol's data and i e...
junkone
Votes: 0
Answers: 1