forked from tanvird3/Portfolio_Optimization
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.R
More file actions
40 lines (37 loc) · 1.03 KB
/
global.R
File metadata and controls
40 lines (37 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# install.packages("tidyverse")
# install.packages("plyr")
# install.packages("plotly")
# install.packages("quantmod")
# install.packages("PerformanceAnalytics")
# install.packages("shiny")
# install.packages("shinythemes")
# install.packages("PortfolioAnalytics")
# install.packages("ROI")
# install.packages("ROI.plugin.glpk")
# install.packages("ROI.plugin.quadprog")
# install.packages("reticulate")
#
# library(TTR)
# library(stringr)
library(shiny)
library(reticulate)
library(plyr)
library(dplyr)
library(plotly)
#library(quantmod)
library(PerformanceAnalytics)
library(shinythemes)
library(PortfolioAnalytics)
library(ROI)
library(ROI.plugin.glpk)
library(ROI.plugin.quadprog)
options(digits = 7)
# load the virtual env
reticulate::virtualenv_create("python35_env", python = "python3")
reticulate::virtualenv_install("python35_env",
packages = c("bdshare"))
reticulate::use_virtualenv("python35_env", required = TRUE)
# read the instrument names
inst <- readr::read_csv("Inst.csv")
tt <- inst$TRADING.CODE