Hybrid Stock Scanner

A high-performance stock scanning tool built for day traders.
Quickly identify both volatility and trend-based trading opportunities across multiple market capitalization tiers.

Please view script here - Scanner

Overview

The Hybrid Stock Scanner implements a dual-strategy approach by:

  • Categorizing stocks into strategic tiers based on market capitalization and trading behavior

  • Analyzing volatility patterns suitable for breakout strategies

  • Identifying trend-following candidates with stable momentum

  • Automatically selecting the best candidates for each strategy type

Key Features

Tiered Stock Classification
Stocks are pre-sorted into four distinct tiers:

  • Tier 1 Small Cap Volatility $0.20 – $16

  • Tier 2 Mid Cap Volatility $14 – $40

  • Tier 3 Large Cap Trend $25 – $100

  • Tier 4 Mega Cap Trend $40 – $1000

Volatility Analysis
Detects high-ATR stocks showing consistent price swings and volume spikes.

Trend Analysis
Evaluates moving average relationships, price consistency, and stable trading volume to find strong, sustainable trends.

Smart Caching
Caches API responses to minimize rate limits and optimize performance.

Batch Processing
Efficiently processes stock data in manageable chunks to optimize API usage.

Detailed Reporting
Outputs clean JSON and CSV reports with full candidate selection details.

Requirements

  • Python 3.6+

  • Libraries:

    • pandas

    • numpy

    • alpaca-trade-api (or compatible broker API)

    • logging

    • datetime

    • json

    • csv

Previous
Previous

Databricks AI Agent Playbook

Next
Next

SQL query optimizer