Update dashboard.py
Browse files- dashboard.py +1 -6
dashboard.py
CHANGED
|
@@ -27,11 +27,8 @@ def load_chart(ticker):
|
|
| 27 |
df = yf.download(ticker, period="3mo", interval="1d", progress=False)
|
| 28 |
|
| 29 |
plt.figure(figsize=(8,4))
|
| 30 |
-
|
| 31 |
plt.plot(df["Close"])
|
| 32 |
-
|
| 33 |
plt.title(ticker)
|
| 34 |
-
|
| 35 |
plt.grid(True)
|
| 36 |
|
| 37 |
return plt
|
|
@@ -56,6 +53,7 @@ with gr.Blocks() as demo:
|
|
| 56 |
"Risk Reward",
|
| 57 |
"Confidence %",
|
| 58 |
"ML Probability %",
|
|
|
|
| 59 |
"Backtest Win Rate",
|
| 60 |
"Market Regime",
|
| 61 |
"Signal Strength"
|
|
@@ -66,15 +64,12 @@ with gr.Blocks() as demo:
|
|
| 66 |
with gr.Row():
|
| 67 |
|
| 68 |
chart_ticker = gr.Textbox(label="Stock Chart (Enter Ticker)")
|
| 69 |
-
|
| 70 |
chart_btn = gr.Button("Load Chart")
|
| 71 |
-
|
| 72 |
chart = gr.Plot()
|
| 73 |
|
| 74 |
with gr.Row():
|
| 75 |
|
| 76 |
sector_panel = gr.JSON(label="Sector Strength")
|
| 77 |
-
|
| 78 |
nifty_trend = gr.Textbox(label="NIFTY Trend")
|
| 79 |
|
| 80 |
run_btn.click(
|
|
|
|
| 27 |
df = yf.download(ticker, period="3mo", interval="1d", progress=False)
|
| 28 |
|
| 29 |
plt.figure(figsize=(8,4))
|
|
|
|
| 30 |
plt.plot(df["Close"])
|
|
|
|
| 31 |
plt.title(ticker)
|
|
|
|
| 32 |
plt.grid(True)
|
| 33 |
|
| 34 |
return plt
|
|
|
|
| 53 |
"Risk Reward",
|
| 54 |
"Confidence %",
|
| 55 |
"ML Probability %",
|
| 56 |
+
"Monte Carlo %",
|
| 57 |
"Backtest Win Rate",
|
| 58 |
"Market Regime",
|
| 59 |
"Signal Strength"
|
|
|
|
| 64 |
with gr.Row():
|
| 65 |
|
| 66 |
chart_ticker = gr.Textbox(label="Stock Chart (Enter Ticker)")
|
|
|
|
| 67 |
chart_btn = gr.Button("Load Chart")
|
|
|
|
| 68 |
chart = gr.Plot()
|
| 69 |
|
| 70 |
with gr.Row():
|
| 71 |
|
| 72 |
sector_panel = gr.JSON(label="Sector Strength")
|
|
|
|
| 73 |
nifty_trend = gr.Textbox(label="NIFTY Trend")
|
| 74 |
|
| 75 |
run_btn.click(
|