-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathui.R
41 lines (41 loc) · 1.1 KB
/
ui.R
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
41
library(shiny)
shinyUI(fluidPage (
theme = shinytheme("superhero"),
headerPanel("DSE Analyzer"),
sidebarPanel(
width = 2,
selectInput(
"instrument",
label = "Select Instrument",
choices =
inst_name,
selected = inst_name[t_default]
),
textInput(
"startdate",
label = "Start Date (yyyy-mm-dd)",
value =
(Sys.Date() - 365)
),
textInput("enddate",
label = "End Date (yyyy-mm-dd)",
value =
Sys.Date()),
submitButton(text = "View")
),
mainPanel (h1(""),
tabsetPanel(
tabPanel("Candlestick Chart", plotlyOutput("output_candleplot")),
tabPanel(
"Technical Indicators",
plotlyOutput("output_bbands"),
br(),
plotlyOutput("output_macd"),
br(),
plotlyOutput("output_rsi")
),
tabPanel("VaR & CVaR",
#tableOutput("output_beta"),
plotlyOutput("output_vcvar"))
))
))