Instantly share code, notes, and snippets.

View R_Return_Calc.R
# First, we need to download some data. This can be done in R, but usually we can just do it
# manually, e.g. from Yahoo Finance. I like Goldman Sachs, so I downloaded historical prices
# from 1 Jan 2012 to 1 Jan 2013 and saved it in my local folder as 'gs_raw.csv'
# * Reads a .csv file
# First make sure the current working directory is your local folder:
setwd("C:/Dropbox/02_Code/_R/__workbin/Return_Calculator");
getwd();
# Now read in the data and save it in a data.frame 'gs.df'
View Python-QSTK-Portfolio-Analyzer.py
#imports
# QSTK Imports
import QSTK.qstkutil.qsdateutil as du
import QSTK.qstkutil.tsutil as tsu
import QSTK.qstkutil.DataAccess as da
# Third Party Imports
import datetime as dt
import matplotlib.pyplot as plt
import pandas as pd