DEV Community

junkone
junkone

Posted on

why is Close vs HLC have different methods to share data

0

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] for DonchianChannel Why is this so? why cannot i just use HLC(mktdata)?

add.indicator(strategy = strategy.st,
                  name =

Top comments (0)