Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,10 +6,9 @@ from ta.trend import SMAIndicator, EMAIndicator, MACD
|
|
| 6 |
from ta.momentum import RSIIndicator
|
| 7 |
from ta.volatility import BollingerBands, AverageTrueRange
|
| 8 |
from textblob import TextBlob
|
|
|
|
| 9 |
import gradio as gr
|
| 10 |
import warnings
|
| 11 |
-
import requests
|
| 12 |
-
|
| 13 |
warnings.filterwarnings('ignore')
|
| 14 |
|
| 15 |
def get_stock_data(ticker, period="1y"):
|
|
@@ -337,10 +336,10 @@ iface = gr.Interface(
|
|
| 337 |
gr.Textbox(label="Analysis Report"),
|
| 338 |
gr.Plot(label="Price Chart"),
|
| 339 |
gr.Plot(label="RSI Chart"),
|
| 340 |
-
gr.Plot(label="MACD Chart")
|
| 341 |
],
|
| 342 |
title="Indian Stock Market Analyzer",
|
| 343 |
-
description="Complete technical analysis for Indian stocks with news integration",
|
| 344 |
examples=[
|
| 345 |
["RELIANCE.NS", "1y"],
|
| 346 |
["TCS.NS", "6mo"],
|
|
|
|
| 6 |
from ta.momentum import RSIIndicator
|
| 7 |
from ta.volatility import BollingerBands, AverageTrueRange
|
| 8 |
from textblob import TextBlob
|
| 9 |
+
from moneycontrol import moneycontrol_api as mc
|
| 10 |
import gradio as gr
|
| 11 |
import warnings
|
|
|
|
|
|
|
| 12 |
warnings.filterwarnings('ignore')
|
| 13 |
|
| 14 |
def get_stock_data(ticker, period="1y"):
|
|
|
|
| 336 |
gr.Textbox(label="Analysis Report"),
|
| 337 |
gr.Plot(label="Price Chart"),
|
| 338 |
gr.Plot(label="RSI Chart"),
|
| 339 |
+
gr.Plot(label="MACD Chart") # Added MACD chart here
|
| 340 |
],
|
| 341 |
title="Indian Stock Market Analyzer",
|
| 342 |
+
description="Complete technical analysis for Indian stocks with MoneyControl news integration",
|
| 343 |
examples=[
|
| 344 |
["RELIANCE.NS", "1y"],
|
| 345 |
["TCS.NS", "6mo"],
|