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