CookStock is a comprehensive stock screening tool implementing several advanced strategies to assist with stock analysis and selection. This tool can run in batch mode, automating the screening and analysis process using data from the YahooFinance API.
-
Filters stocks according to Mark Minervini's stage 2 criteria, including moving average, volume, and price position strategies.
-
Detects volatility contraction patterns, including identifying potential pivots, assessing for deep corrections, and evaluating selling pressure to determine if it has dried up.
-
extracts news from yahoo finance and feed news into chatgpt api to collect feed back
-
ranks selections based on technical factors and impact of news
-
Calculates each stock's intrinsic value based on the Rule #1 investing principles, allowing comparison to the stock's market price.
all the tools can run under a batch mode, which allows you to screen and analyze stocks automatically
Using the YahooFinance API, cookStock pulls stock data automatically for analysis. All tools are designed to run in batch mode, enabling automatic daily screening of stocks based on the selected criteria.
Here is an example of TSLA's volatility contraction pattern
Usage Instructions batch mode:
- Run cookStockPipeline.py to perform both stage 2 template screening and apply contraction pattern detection on the selected stocks.
- Run cookstock_askgpt.py to perfrorm news extraction and gpt review. I have 2 ways to get news a. use scraper to scrapt news from yahoo finance b. use finnhub to request news
test function:
- run runTest_cookStock_basic.py to run RULE ONE
- run runTest_cookStock_stage2templte.py to run stage2 template and test contraction pattern
We also run the selection daily and post here: View Daily Selection Results
If you enjoy this project and even gain profits from it, consider supporting through a donation via PayPal
Paypal |
---|