Articles by Posts on Matthew Smith R Shenanigans

Quantitative Trading Strategies using quantmod

December 28, 2019 | Posts on Matthew Smith R Shenanigans

Strategies Introduction: Note: This post is unfinished. This post goes through a number of the technical trading functions in the TTR package here. I add definitions and show examples of how the functions work.
library(dplyr)
library(quantmod)
library(tidyquant)
library(TTR)
library(timetk)
library(tidyr)
library(ggplot2) 
library(directlabels)
library(data.table)
library(quantstrat)
library(purrr)
library(quantstrat)
We can download some data using the quantmod package which stores the different assets into ...
[Read more...]

Factor Modeling in R

November 13, 2019 | Posts on Matthew Smith R Shenanigans

The most popular models for analysing the risk of portfolios are factor models, since stocks have a tendency to move together. The principal component of securities often explains a large share of it’s variance. Since we are mostly concerned with multiple assets which form a portfolio we need to ...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)