Question 1: Historical Stock Data Analysis This task involves analyzing the historical stock data for a NIFTY50 stock over a specified period (from August 1, 2022, to August 1, 2024). The analysis includes:
Data Retrieval: Fetching the historical stock data from Yahoo Finance for the given period. Data Extraction: Extracting key columns such as Open, High, Low, Close, Adjusted Close, and Volume. RSI Calculation: Computing the 14-day and 50-day Relative Strength Index (RSI) to analyze the stock's momentum. Daily Percentage Change: Calculating the daily percentage change in the stock's closing prices. Visualization: Plotting the closing prices along with the 14-day and 50-day Exponential Moving Averages (EMAs). Visualizing the RSI values. Creating a histogram of the daily percentage changes. Subplot Creation: Generating a composite plot that includes the daily closing prices with RSI, the daily volume, and the histogram of daily percentage changes for comprehensive analysis. This question aims to provide a detailed analysis of stock performance using key technical indicators and visualizations, enabling better understanding and decision-making.