Closed pratikshabhujade closed 3 months ago
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our [CONTRIBUTING.md]. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊
This PR introduces a basic momentum trading strategy using the MACD indicator. It includes:
Data Fetching: Retrieves historical stock data from Yahoo Finance.
MACD Calculation: Computes MACD and Signal Line.
Signal Generation: Generates buy and sell signals based on MACD crossovers.
Visualization: Plots stock prices, buy/sell signals, and MACD.
Changes
Added code to fetch historical stock data.
Implemented MACD indicator calculation and trading signal generation.
Included visualization of trading signals and MACD.