CHM-and-Gann-Cycles-Analysis is a data engineering and data science project aimed at extracting 20 years of historical data for all stocks on the Indian Stock Market. This project applies two key technical analysis methods—CHM (Cycle Harmonic Method) and Gann Cycles—to identify potential trading opportunities.
- Collect historical stock data for the past 20 years from Yahoo Finance.
- Implement CHM and Gann Cycles methods for identifying trading opportunities.
- Save and manage progress with error handling to ensure data integrity.
- Output processed data in a user-friendly CSV format for further analysis.
- Python
- Selenium
- Pandas
- NumPy
- Matplotlib (for visualization, if applicable)
- Yahoo Finance API (for data collection)
To get a local copy up and running, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/CHM-and-Gann-Cycles-Analysis.git cd CHM-and-Gann-Cycles-Analysis
-
Install the required packages:
You can install the required packages using pip:
pip install -r requirements.txt
-
Set up the WebDriver:
Ensure you have the Chrome WebDriver installed and added to your system PATH, or adjust the
init_driver
function to point to the WebDriver location.
-
Edit the
bse_stocks
list in themain
function:Update the list to include the stock symbols you want to analyze.
-
Run the script:
Execute the main script to start fetching historical stock data:
python main.py
-
Analyze the output:
The data will be saved in the specified output CSV file. You can then analyze the data using your preferred tools or methods.
- Historical stock data is collected from Yahoo Finance.
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by the need for effective trading strategies in the Indian Stock Market.
- Thanks to contributors and libraries that facilitate data scraping and analysis.