Spaces:
Runtime error
Runtime error
Commit
·
5e124b3
1
Parent(s):
643be96
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 |
return DF
|
| 44 |
|
| 45 |
def get_hvplot(ticker , startdate , enddate , interval,window,window2):
|
|
@@ -95,6 +96,6 @@ pn.Row(
|
|
| 95 |
# pn.bind(calc_fairprice_CDF,ticker),
|
| 96 |
# pn.bind(calc_fairprice_DnetP,ticker)),
|
| 97 |
# pn.panel(pn.bind(get_hvplot, ticker, "2010-01-01","2023-09-01","1d")) #, sizing_mode='stretch_width')
|
| 98 |
-
pn.panel(pn.bind(get_hvplot, ticker, date_start , date_end,"5",window,window2)), #, sizing_mode='stretch_width')
|
| 99 |
# pn.panel(pn.bind(get_income_hvplot, ticker)) #, sizing_mode='stretch_width')
|
| 100 |
).servable(title="Intraday Price Action - Pattern Detection")
|
|
|
|
| 40 |
DF['SMA'] = DF.Close.rolling(window=window).mean()
|
| 41 |
DF['SMA2'] = DF.Close.rolling(window=window2).mean()
|
| 42 |
DF = DF.reset_index()
|
| 43 |
+
print(DF)
|
| 44 |
return DF
|
| 45 |
|
| 46 |
def get_hvplot(ticker , startdate , enddate , interval,window,window2):
|
|
|
|
| 96 |
# pn.bind(calc_fairprice_CDF,ticker),
|
| 97 |
# pn.bind(calc_fairprice_DnetP,ticker)),
|
| 98 |
# pn.panel(pn.bind(get_hvplot, ticker, "2010-01-01","2023-09-01","1d")) #, sizing_mode='stretch_width')
|
| 99 |
+
# pn.panel(pn.bind(get_hvplot, ticker, date_start , date_end,"5",window,window2)), #, sizing_mode='stretch_width')
|
| 100 |
# pn.panel(pn.bind(get_income_hvplot, ticker)) #, sizing_mode='stretch_width')
|
| 101 |
).servable(title="Intraday Price Action - Pattern Detection")
|