Skip to content

Instantly share code, notes, and snippets.

View fikritrader's full-sized avatar

Fikri Bouklata fikritrader

View GitHub Profile
@fikritrader
fikritrader / reinvent.md
Created February 16, 2021 15:07 — forked from henrysher/reinvent.md
link for reinvent slides
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#####################################################################################
# Strategy - Shorting at High #
#####################################################################################
# Upload the libraries and make other initial settings ##########################################################################################
library(xlsx);library(zoo);library(quantmod);library(rowr);library(TTR);
system.time({
@fikritrader
fikritrader / alpha_vantage.jl
Created April 11, 2018 16:17 — forked from flare9x/alpha_vantage.jl
Julia - Download free data alphavantage api
# Download Data Using Alphavantage
using HTTP
res = HTTP.get("https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=AAPL&interval=1min&apikey=your_api_key&datatype=csv")
mycsv = readcsv(res.body)
x = convert(DataFrame, mycsv)
x = x[2:nrow(x),:] # subset remove header row
# Rename Columns
colnames = ["Date","Open","High","Low","Close","Volume"]
names!(x.colindex, map(parse, colnames))
# Convert String Date to Date format