Skip to content

ArunavD/Stock-pattern-detection

Repository files navigation

Stock-pattern-detection

Detecting candlestick patterns in real time stocks

Focus

Focusing mainly on finding bullish engulfing and bearish engulfing patters.

What is bullish engulfing?

A bullish engulfing pattern is a white or green candlestick that closes higher than the previous day's opening after opening lower than the previous day's close.

What is bearish engulfing?

A bearish engulfing pattern is a technical chart pattern that signals lower prices to come. The pattern consists of an up (white or green) candlestick followed by a large down (black or red) candlestick that eclipses or "engulfs" the smaller up candle.

Libraries

  • yfinance - An easy-to-use Python library for accessing the informations of Stocks.
  • pandas - the most powerful and flexible open source data analysis / manipulation tool.
  • matplotlib - is a comprehensive library for creating static, animated, and interactive visualizations in Python.

Description of each file

  1. tesla.py - Extracting all historical stock information of tesla and saving the output to a csv file.
  2. tesla.csv- Output file of tesla.py
  3. tesla_price_visualisation.py - Visualising the output csv file.
  4. tesla_pattern.py - Finding bullish engulfing patterns in tesla.csv file.
  5. sp500_companies.csv - A csv file of S&P 500 companies list and their ticker name.
  6. download_sp500_history.py - Downloading all historical data of S&P 500 companies and saving them to different csv files.
  7. history - Contains all output csv files of S&P 500 companies.
  8. sp500_pattern.py - Finding bullish engulfing and bearish engulfing patterns in all the S&P 500 companies csv files.

About

Detecting patterns in real time stocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages