Skip to content

nikhilkr16/AI_RECOMMENDATION_INDIAN_STOCK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Advanced Indian Stock Market Dashboard 2025 ๐ŸŒŸ

Welcome to the Advanced Indian Stock Market Dashboard! ๐ŸŽ‰ This tool helps you understand and analyze the Indian stock market with real-time data, smart AI recommendations, and comprehensive charts. Whether you're new to trading or looking for deeper insights, this dashboard is designed to be user-friendly and informative. ๐Ÿ“Š


Project link-> https://indianstockai.streamlit.app/

image

โœจ Key Features ๐Ÿ”‘

Here's what this dashboard can do for you:

  • ๐Ÿ“ˆ Real-time Stock Data: Get instant updates on stock prices, daily highs and lows, and trading volumes.
  • ๐Ÿค– Smart AI Trading Recommendations: Receive intelligent BUY, SELL, or HOLD signals with a confidence score, powered by advanced mathematical models.
  • ๐Ÿ“Š Comprehensive Technical Charts: Visualize stock performance with detailed charts showing key indicators like Moving Averages, RSI, MACD, and Bollinger Bands.
  • ๐Ÿ” Intelligent Stock Symbol Validation: โœ… No more guessing! The dashboard tells you if you've entered a wrong stock symbol.
  • ๐Ÿ’ผ Trading Simulation: Practice your trading strategies without risking real money using the built-in buy/sell simulator and transaction log.
  • ๐Ÿ”„ Auto-Refresh: Keep your data fresh with an optional automatic refresh every 60 seconds. โŒ›
  • ๐Ÿ’ก Derivatives Market Insights: Explore specific data for the Indian derivatives market (Futures & Options).

๐Ÿค” How It Works (For Everyone!) ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

You don't need to be a trading expert to use this dashboard! Here's a simple breakdown of each feature:

1. ๐Ÿ“Š Equity Dashboard (Stocks) ๐Ÿ“‰

This is where you analyze individual company stocks.

๐Ÿš€ Getting Started:

  • ๐Ÿ” Stock Symbol: In the left sidebar, simply type the short name (symbol) of the Indian company stock you want to check (e.g., TCS for Tata Consultancy Services, RELIANCE for Reliance Industries).
  • ๐Ÿ”„ Refresh Data: Click the Refresh button to get the very latest information right away. ๐Ÿ”
  • Auto Refresh (60s): Check this box if you want the dashboard to automatically update the stock data every 60 seconds, so you always have fresh numbers. โณ

๐Ÿ“ˆ Live Market Snapshot ๐Ÿ“Š

  • Current Price: This is the price of one share of the stock right now. The number next to it shows how much the price has changed from yesterday and its percentage change.
  • Volume: This tells you how many shares of the stock have been traded today. A higher volume usually means more people are actively buying or selling that stock. ๐Ÿ”ฅ
  • Day High: The highest price the stock reached today. ๐ŸŸข
  • Day Low: The lowest price the stock touched today. ๐Ÿ”ด

๐Ÿค– Smart AI Trading Recommendation ๐Ÿค”

This is like having a smart assistant giving you advice!

  • ๐Ÿ“Š BUY / SELL / HOLD:
    • BUY (๐ŸŸข): The AI thinks the stock price might go up soon.
    • SELL (๐Ÿ”ด): The AI suggests the stock price might go down soon.
    • HOLD (๐ŸŸก): The AI isn't sure, or the market is mixed. It's best to wait and see.
  • Reason: A short explanation of why the AI made that recommendation (e.g., "RSI oversold," "MACD bullish crossover"). Don't worry if you don't understand the terms yet; the main signal is the BUY/SELL/HOLD. ๐Ÿ“Œ
  • Confidence: This is how sure the AI is about its recommendation. More green circles (๐ŸŸข) mean higher confidence. For example, ๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸขโšชโšช means 80% confidence.

๐Ÿ“ˆ Advanced Technical Analysis (Charts) ๐Ÿ“Š

This section shows you graphs that help visualize how the stock price has moved over time and what the indicators are suggesting.

  • Candlestick Chart: This is the main chart. Each "candle" shows the opening price, closing price, highest price, and lowest price for a specific day. Green candles mean the price went up that day, and red candles mean it went down. ๐Ÿ•ฏ๏ธ
  • Moving Averages (SMA 20, SMA 50, SMA 200): These are lines that smooth out the price data to show the average price over 20, 50, or 200 days. They help identify trends. ๐Ÿ“ˆ
  • Bollinger Bands: These are three lines (upper, middle, lower) that show how much the price is moving around its average. They can help spot when a stock is "overbought" (price near upper band) or "oversold" (price near lower band). ๐Ÿ“‰
  • RSI (Relative Strength Index): This indicator tells you if a stock is "overbought" (too many people buying, price might drop) or "oversold" (too many people selling, price might rise). It ranges from 0 to 100. ๐Ÿ“Š
  • MACD (Moving Average Convergence Divergence): This indicator helps spot changes in a stock's momentum and trend. It has two lines and a histogram (bars) that show if the buying or selling pressure is increasing. ๐Ÿ“ˆ๐Ÿ“‰

๐Ÿ“Š Technical Indicators & Statistics ๐Ÿ“ˆ

This section shows you the exact numbers for the technical indicators mentioned above, along with some performance metrics like daily and monthly returns.


๐Ÿ’ผ Trading Simulation ๐Ÿ“

This is your practice zone! ๐ŸŽฎ

  • Quantity: How many shares you want to "buy" or "sell."
  • Price per Share: The price you want to "buy" or "sell" at.
  • Buy / Sell / Hold Buttons: Click these to record your simulated trades.
  • ๐Ÿ“ Transaction Log: All your practice trades are recorded here, so you can review your decisions.

๐Ÿšซ Wrong Symbol Alert โŒ

If you type a stock symbol that doesn't exist or can't be found, the dashboard will show a clear red box with "โŒ Invalid Stock Symbol" and suggestions on what to do.


2. ๐Ÿ’ก Derivatives Dashboard (Futures & Options) ๐Ÿ“ˆ๐Ÿ“‰

This section provides specialized data for more advanced trading instruments called "derivatives." If you're new to trading, you might want to focus on the Equity Dashboard first.


Instrument Type:

  • NSE Equity Market:

    • price_volume_and_deliverable_position_data: Shows historical price, trading volume, and how many shares were actually "delivered" (bought to keep, not just for quick trading).
    • bhav_copy_equities: A daily report from NSE showing opening, closing, high, and low prices for all listed stocks on a specific date.
    • nifty50_equity_list: Lists all the stocks that make up the Nifty 50 index (India's top 50 companies). ๐Ÿ†
    • india_vix_data: Shows the "India VIX" index, which measures how much the market expects prices to swing in the near future (higher VIX means more expected volatility). ๐Ÿ“Š
    • market_watch_all_indices: Gives you real-time data for various market indexes (like Nifty 50, Bank Nifty, etc.).
  • NSE Derivative Market:

    • fno_bhav_copy: A daily report for Futures and Options contracts, similar to the equity bhav copy but for derivatives.
    • nse_live_option_chain: Shows all available Options contracts for a specific stock or index, including their prices and how many contracts are open.
    • future_price_volume_data: Gives historical price and volume data for Futures contracts.

๐ŸŽฏ How Accurate Is the AI Recommendation? ๐Ÿ“Š๐Ÿค–

The AI recommendation aims for high accuracy (around 80%) by using a sophisticated, rule-based system that combines multiple proven technical analysis strategies. It's not a random guess!


๐Ÿš€ How to Get Started (Installation & Running) ๐Ÿ’ป๐Ÿ“‚

To run this powerful dashboard on your own computer, follow these simple steps:

Prerequisites

  • Python 3.8+: Make sure you have Python installed. You can download it from python.org.
  • pip: This is usually installed with Python.

Installation Steps

  1. Save the Code: Copy the entire Python code for the dashboard into a file named app.py on your computer.
  2. Open Terminal/Command Prompt:
    • On Windows, search for "Command Prompt" or "PowerShell."
    • On macOS/Linux, open "Terminal."
  3. Navigate to the Folder: Use the cd command to go to the folder where you saved app.py.
    • Example: cd C:\Users\YourName\Documents\StockDashboard
    • Example: cd ~/Documents/StockDashboard
  4. Install Libraries: You need to install all the necessary tools (libraries) for the dashboard to work. Run this command:
    pip install streamlit pandas numpy plotly requests beautifulsoup4 streamlit-autorefresh yfinance nselib

Running the Dashboard

Once all libraries are installed, run the dashboard using this command in your terminal/command prompt (from the same folder where app.py is):

streamlit run app.py

Your web browser should automatically open a new tab with the dashboard! If not, it will provide a local URL (e.g., http://localhost:8501) that you can copy and paste into your browser. ๐ŸŒ


โš ๏ธ Important Disclaimer โ—

This Advanced Indian Stock Market Dashboard is provided for educational and informational purposes only. It is NOT financial advice. Stock market investments carry inherent risks, and you could lose money. Always conduct your own thorough research, understand the risks involved, and consult with a qualified financial advisor before making any investment decisions. The AI recommendations are based on historical data and mathematical models, which do not guarantee future performance.


Happy Analyzing! ๐Ÿ“Š๐Ÿ“ˆ๐Ÿš€# ๐Ÿš€ Advanced Indian Stock Market Dashboard 2025 ๐ŸŒŸ

Welcome to the Advanced Indian Stock Market Dashboard! ๐ŸŽ‰ This tool helps you understand and analyze the Indian stock market with real-time data, smart AI recommendations, and comprehensive charts. Whether you're new to trading or looking for deeper insights, this dashboard is designed to be user-friendly and informative. ๐Ÿ“Š


โœจ Key Features ๐Ÿ”‘

Here's what this dashboard can do for you:

  • ๐Ÿ“ˆ Real-time Stock Data: Get instant updates on stock prices, daily highs and lows, and trading volumes.
  • ๐Ÿค– Smart AI Trading Recommendations: Receive intelligent BUY, SELL, or HOLD signals with a confidence score, powered by advanced mathematical models.
  • ๐Ÿ“Š Comprehensive Technical Charts: Visualize stock performance with detailed charts showing key indicators like Moving Averages, RSI, MACD, and Bollinger Bands.
  • ๐Ÿ” Intelligent Stock Symbol Validation: โœ… No more guessing! The dashboard tells you if you've entered a wrong stock symbol.
  • ๐Ÿ’ผ Trading Simulation: Practice your trading strategies without risking real money using the built-in buy/sell simulator and transaction log.
  • ๐Ÿ”„ Auto-Refresh: Keep your data fresh with an optional automatic refresh every 60 seconds. โŒ›
  • ๐Ÿ’ก Derivatives Market Insights: Explore specific data for the Indian derivatives market (Futures & Options).

๐Ÿค” How It Works (For Everyone!) ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

You don't need to be a trading expert to use this dashboard! Here's a simple breakdown of each feature:

1. ๐Ÿ“Š Equity Dashboard (Stocks) ๐Ÿ“‰

This is where you analyze individual company stocks.

๐Ÿš€ Getting Started:

  • ๐Ÿ” Stock Symbol: In the left sidebar, simply type the short name (symbol) of the Indian company stock you want to check (e.g., TCS for Tata Consultancy Services, RELIANCE for Reliance Industries).
  • ๐Ÿ”„ Refresh Data: Click the Refresh button to get the very latest information right away. ๐Ÿ”
  • Auto Refresh (60s): Check this box if you want the dashboard to automatically update the stock data every 60 seconds, so you always have fresh numbers. โณ

๐Ÿ“ˆ Live Market Snapshot ๐Ÿ“Š

  • Current Price: This is the price of one share of the stock right now. The number next to it shows how much the price has changed from yesterday and its percentage change.
  • Volume: This tells you how many shares of the stock have been traded today. A higher volume usually means more people are actively buying or selling that stock. ๐Ÿ”ฅ
  • Day High: The highest price the stock reached today. ๐ŸŸข
  • Day Low: The lowest price the stock touched today. ๐Ÿ”ด

๐Ÿค– Smart AI Trading Recommendation ๐Ÿค”

This is like having a smart assistant giving you advice!

  • ๐Ÿ“Š BUY / SELL / HOLD:
    • BUY (๐ŸŸข): The AI thinks the stock price might go up soon.
    • SELL (๐Ÿ”ด): The AI suggests the stock price might go down soon.
    • HOLD (๐ŸŸก): The AI isn't sure, or the market is mixed. It's best to wait and see.
  • Reason: A short explanation of why the AI made that recommendation (e.g., "RSI oversold," "MACD bullish crossover"). Don't worry if you don't understand the terms yet; the main signal is the BUY/SELL/HOLD. ๐Ÿ“Œ
  • Confidence: This is how sure the AI is about its recommendation. More green circles (๐ŸŸข) mean higher confidence. For example, ๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸข๐ŸŸขโšชโšช means 80% confidence.

๐Ÿ“ˆ Advanced Technical Analysis (Charts) ๐Ÿ“Š

This section shows you graphs that help visualize how the stock price has moved over time and what the indicators are suggesting.

  • Candlestick Chart: This is the main chart. Each "candle" shows the opening price, closing price, highest price, and lowest price for a specific day. Green candles mean the price went up that day, and red candles mean it went down. ๐Ÿ•ฏ๏ธ
  • Moving Averages (SMA 20, SMA 50, SMA 200): These are lines that smooth out the price data to show the average price over 20, 50, or 200 days. They help identify trends. ๐Ÿ“ˆ
  • Bollinger Bands: These are three lines (upper, middle, lower) that show how much the price is moving around its average. They can help spot when a stock is "overbought" (price near upper band) or "oversold" (price near lower band). ๐Ÿ“‰
  • RSI (Relative Strength Index): This indicator tells you if a stock is "overbought" (too many people buying, price might drop) or "oversold" (too many people selling, price might rise). It ranges from 0 to 100. ๐Ÿ“Š
  • MACD (Moving Average Convergence Divergence): This indicator helps spot changes in a stock's momentum and trend. It has two lines and a histogram (bars) that show if the buying or selling pressure is increasing. ๐Ÿ“ˆ๐Ÿ“‰

๐Ÿ“Š Technical Indicators & Statistics ๐Ÿ“ˆ

This section shows you the exact numbers for the technical indicators mentioned above, along with some performance metrics like daily and monthly returns.


๐Ÿ’ผ Trading Simulation ๐Ÿ“

This is your practice zone! ๐ŸŽฎ

  • Quantity: How many shares you want to "buy" or "sell."
  • Price per Share: The price you want to "buy" or "sell" at.
  • Buy / Sell / Hold Buttons: Click these to record your simulated trades.
  • ๐Ÿ“ Transaction Log: All your practice trades are recorded here, so you can review your decisions.

๐Ÿšซ Wrong Symbol Alert โŒ

If you type a stock symbol that doesn't exist or can't be found, the dashboard will show a clear red box with "โŒ Invalid Stock Symbol" and suggestions on what to do.


2. ๐Ÿ’ก Derivatives Dashboard (Futures & Options) ๐Ÿ“ˆ๐Ÿ“‰

This section provides specialized data for more advanced trading instruments called "derivatives." If you're new to trading, you might want to focus on the Equity Dashboard first.


Instrument Type:

  • NSE Equity Market:

    • price_volume_and_deliverable_position_data: Shows historical price, trading volume, and how many shares were actually "delivered" (bought to keep, not just for quick trading).
    • bhav_copy_equities: A daily report from NSE showing opening, closing, high, and low prices for all listed stocks on a specific date.
    • nifty50_equity_list: Lists all the stocks that make up the Nifty 50 index (India's top 50 companies). ๐Ÿ†
    • india_vix_data: Shows the "India VIX" index, which measures how much the market expects prices to swing in the near future (higher VIX means more expected volatility). ๐Ÿ“Š
    • market_watch_all_indices: Gives you real-time data for various market indexes (like Nifty 50, Bank Nifty, etc.).
  • NSE Derivative Market:

    • fno_bhav_copy: A daily report for Futures and Options contracts, similar to the equity bhav copy but for derivatives.
    • nse_live_option_chain: Shows all available Options contracts for a specific stock or index, including their prices and how many contracts are open.
    • future_price_volume_data: Gives historical price and volume data for Futures contracts.

๐ŸŽฏ How Accurate Is the AI Recommendation? ๐Ÿ“Š๐Ÿค–

The AI recommendation aims for high accuracy (around 80%) by using a sophisticated, rule-based system that combines multiple proven technical analysis strategies. It's not a random guess!


๐Ÿš€ How to Get Started (Installation & Running) ๐Ÿ’ป๐Ÿ“‚

To run this powerful dashboard on your own computer, follow these simple steps:

Prerequisites

  • Python 3.8+: Make sure you have Python installed. You can download it from python.org.
  • pip: This is usually installed with Python.

Installation Steps

  1. Save the Code: Copy the entire Python code for the dashboard into a file named app.py on your computer.
  2. Open Terminal/Command Prompt:
    • On Windows, search for "Command Prompt" or "PowerShell."
    • On macOS/Linux, open "Terminal."
  3. Navigate to the Folder: Use the cd command to go to the folder where you saved app.py.
    • Example: cd C:\Users\YourName\Documents\StockDashboard
    • Example: cd ~/Documents/StockDashboard
  4. Install Libraries: You need to install all the necessary tools (libraries) for the dashboard to work. Run this command:
    pip install streamlit pandas numpy plotly requests beautifulsoup4 streamlit-autorefresh yfinance nselib

Running the Dashboard

Once all libraries are installed, run the dashboard using this command in your terminal/command prompt (from the same folder where app.py is):

streamlit run app.py

Your web browser should automatically open a new tab with the dashboard! If not, it will provide a local URL (e.g., http://localhost:8501) that you can copy and paste into your browser. ๐ŸŒ


โš ๏ธ Important Disclaimer โ—

This Advanced Indian Stock Market Dashboard is provided for educational and informational purposes only. It is NOT financial advice. Stock market investments carry inherent risks, and you could lose money. Always conduct your own thorough research, understand the risks involved, and consult with a qualified financial advisor before making any investment decisions. The AI recommendations are based on historical data and mathematical models, which do not guarantee future performance.


Happy Analyzing! ๐Ÿ“Š๐Ÿ“ˆ๐Ÿš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages