Financieel traden in R
Ilya Kipnis
Professional Quantitative Analyst and R programmer
chart.Posn() geeft snel een eerste indruk van je strategieprestaties
chart.Posn(portfolio = portfolio.st, Symbol = "LQD")

Bereken indicatoren buiten de strategie om ze aan de grafiek toe te voegen
sma50 <- SMA(x = Cl(LQD), n = 50)
sma200 <- SMA(x = Cl(LQD), n = 200)
dvo <- DVO(HLC = HLC(LQD), nAvg = 2, percentLookback = 126)
Voeg indicatoren toe met add_TA(). Gebruik on = 1 om aan de prijsgrafiek toe te voegen
chart.Posn(Portfolio = portfolio.st, symbol = "LQD")
add_TA(sma50, on = 1, col = "blue")
add_TA(sma200, on = 1, col = "red")add_TA(dvo)
zoom_Chart("date1/date2") voor een close-upzoom_Chart("2007-08/2007-12") geeft:
Financieel traden in R