Skip to main content

📊 Smart Money Concepts (SMC) & Stocks (Gaps, fib, S/R, chart_patterns) Analysis Toolkit

A high-performance Python toolkit for advanced stock market analysis, focusing on Smart Money Concepts (SMC) and stocks (Gaps, fib, S/R, chart_patterns) analysis.

🚀 Key Features

1. Smart Money Concepts (SMC) Analysis

  • Market Structure : Vectorized detection of Swing and Internal structure (BOS, CHoCH).
  • Supply & Demand : Identification of Order Blocks (OB) and Fair Value Gaps (FVG).
  • Liquidity : Detection of Equal Highs and Equal Lows.
  • Screener : A dedicated screener to find stocks currently trading near these institutional levels.

2. Stocks (Gaps, fib, S/R, chart_patterns) Analysis Suite

  • LTP Near Gaps : Finds stocks trading near unfilled or partially filled gaps.
  • Support & Resistance : Vectorized detection of high-probability S/R zones.
  • Fibonacci Levels : Automated Fibonacci retracement analysis.
  • Chart Patterns : Detects Head & Shoulders, Double Tops/Bottoms, Triangles, Flags, Pennants, and Wedges.
  • Candle & Gap Analysis : Deep dive into daily candle patterns and gap dynamics.

3. "Super Fast" Performance Architecture

  • Centralized Data Manager : Unified fetching via yfinance with robust retry logic.
  • Aggressive Cache Slicing : Automatically reuses larger period caches (e.g., max) to fulfill shorter period requests (e.g., 1y, 1d) instantly.
  • In-Memory Caching : Minimizes disk I/O by keeping dataframes in memory during execution.
  • Vectorized Logic : Most analysis modules use NumPy and Pandas vectorization for rapid processing of hundreds of stocks.

🛠 Installation

  1. Install dependencies:
    pip install .
    

📈 Usage

Run SMC Screener & Analysis

This is the primary entry point for Smart Money Concepts analysis. It provides an interactive menu to run Analysis, Screening, or Both.

python "SMC Screener.py"

Run Multi-Indicator Analysis

Executes the full suite of other indicators (Gaps, S/R, Fibonacci, Patterns) in one go.

python run_analysis.py

⚙️ Configuration

  • Cache : Data is stored in data_cache/ as .pkl files. Default expiry is 24 hours.
  • Output : Results are saved in outputs/ and analysis/ directories (CSV format).
  • Google Sheets : Supports syncing results to Google Sheets (requires credentials.json in Credentials/).

📁 Project Structure

  • SMC Screener.py : Interactive entry point for SMC pipeline.
  • run_analysis.py : Main runner for multi-indicator suite.
  • stock_analysis/ : Core logic modules.
    • stock_data_manager.py: High-performance data & cache handler.
    • smc_analysis.py : The SMC engine.
    • chart_patterns.py : Pattern detection logic.
    • support_resistance.py: S/R zone detection.
  • data_cache/ : Local repository for stock data.

Note: This toolkit is for educational and research purposes. Always perform your own due diligence before trading.

Metadata

Release files for market-analyzer 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for market-analyzer 0.0.4
File Size Uploaded Provenance Actions
market_analyzer-0.0.4.tar.gz 48.4 kB Without provenance Details for market_analyzer-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for market-analyzer 0.0.4
File Interpreter ABI Platform Actions
market_analyzer-0.0.4-py3-none-any.whl Python 3 none any Details for market_analyzer-0.0.4-py3-none-any.whl

Total release size: 104.4 kB

Release files / market_analyzer-0.0.4.tar.gz

Download URL market_analyzer-0.0.4.tar.gz
Size 48.4 kB
Tags Source
SHA-256 checksum
How to use checksums
79c92cae2fb657b28611d7f64139d8116e4cb84215dd0face19748ecffba9eea
BLAKE2b-256 checksum
How to use checksums
cfc9e0ffdd37537d1b82cf97990f6795f1d99a0b8a0fa45864d636708fe9c1fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / market_analyzer-0.0.4-py3-none-any.whl

Download URL market_analyzer-0.0.4-py3-none-any.whl
Size 56.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f934638ecf490edc231421577f60f1a471fd1637277c593a722568746cd8cb12
BLAKE2b-256 checksum
How to use checksums
ff2bffb483ae2f2c09880a003b2065897b4a0d5a87cd6a778a0d1637264ec736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Security for market-analyzer 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page