Giao dịch tài chính với R
Ilya Kipnis
Professional Quantitative Analyst and R programmer
TTR: bộ công cụ chỉ báo giao dịch cổ điển
SMA (Simple Moving Average)
Phổ biến với CTA: đường trung bình 200 ngày
# 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")

Giao dịch tài chính với R