Financieel traden in R
Ilya Kipnis
Professional Quantitative Analyst and R programmer
TTR: toolbox met klassieke trading-indicatoren
SMA (Simple Moving Average)
Populair bij CTA’s: 200-daags voortschrijdend gemiddelde
# Compute a simple moving average (SMA) across 200 days
sma <- SMA(x = Cl(LQD), n = 200)
# Add the SMA line to your plot of LQD closing price
plot(Cl(LQD))
lines(sma, col = "red")

Financieel traden in R