Spaces:
Runtime error
Runtime error
Commit
·
02da4d2
1
Parent(s):
177be29
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,6 +40,7 @@ def getPolygonDF(ticker , startdate , enddate , intervalperiod, window, window2)
|
|
| 40 |
DF['SMA'] = DF.Close.rolling(window=window).mean()
|
| 41 |
DF['SMA2'] = DF.Close.rolling(window=window2).mean()
|
| 42 |
DF = DF.reset_index()
|
|
|
|
| 43 |
|
| 44 |
def get_hvplot(ticker , startdate , enddate , interval,window,window2):
|
| 45 |
DF = getPolygonDF(ticker , startdate=startdate , enddate=enddate , interval=interval,window=window,window2=window2)
|
|
@@ -106,4 +107,4 @@ pn.Row(
|
|
| 106 |
# pn.panel(pn.bind(get_hvplot, ticker, "2010-01-01","2023-09-01","1d")) #, sizing_mode='stretch_width')
|
| 107 |
pn.panel(pn.bind(get_hvplot, ticker, date_start , date_end,"5",window,window2)), #, sizing_mode='stretch_width')
|
| 108 |
# pn.panel(pn.bind(get_income_hvplot, ticker)) #, sizing_mode='stretch_width')
|
| 109 |
-
).servable(title="
|
|
|
|
| 40 |
DF['SMA'] = DF.Close.rolling(window=window).mean()
|
| 41 |
DF['SMA2'] = DF.Close.rolling(window=window2).mean()
|
| 42 |
DF = DF.reset_index()
|
| 43 |
+
return DF
|
| 44 |
|
| 45 |
def get_hvplot(ticker , startdate , enddate , interval,window,window2):
|
| 46 |
DF = getPolygonDF(ticker , startdate=startdate , enddate=enddate , interval=interval,window=window,window2=window2)
|
|
|
|
| 107 |
# pn.panel(pn.bind(get_hvplot, ticker, "2010-01-01","2023-09-01","1d")) #, sizing_mode='stretch_width')
|
| 108 |
pn.panel(pn.bind(get_hvplot, ticker, date_start , date_end,"5",window,window2)), #, sizing_mode='stretch_width')
|
| 109 |
# pn.panel(pn.bind(get_income_hvplot, ticker)) #, sizing_mode='stretch_width')
|
| 110 |
+
).servable(title="Intraday Price Action - Pattern Detection")
|