SimpliBreakout: The Multi-Market Breakout and Trend Screener for Active Traders
Introduction
In fast-moving markets, timing a breakout or identifying early trend alignment can define a successful trading strategy. The SimpliBreakout suite is a Python-based toolkit designed to empower traders, analysts, and quant developers with advanced, customizable scanners for breakout detection, EMA crossovers, and peer comparisons.
It supports a wide range of global markets—from the S&P 500 and NASDAQ 100 to SET50, Nikkei 50, and HSI 50—and integrates seamlessly with Plotly visualizations and local AI sentiment models via Ollama.
Core Scanner: test10.py
At the heart of the system lies test10.py, the multi-market breakout and near-breakout scanner. It fetches OHLCV data via yfinance, applies filters for volume, close percentage, and volatility, and generates interactive Plotly charts enriched with RSI, EMA, and support/resistance overlays.
Key Capabilities
- Detection Modes: Breakout, near-breakout, and consolidation pre-filters.
- Indicators: RSI, EMA gating, ATR and daily gain caps.
- Markets Covered: Euronext, SET50/100, SSE50, NYSE, NASDAQ, S&P500, HSI, STI, Nikkei, Taiwan50, Vietnam50, and more.
- Charting: Interactive HTML or PNG charts with sloped trendlines, annotated news, and rumor scoring.
- AI Integration: Optional Ollama sentiment analysis for local insights and rumor evaluation.
Simplified API and CLI Wrapper: breakout.py
For developers who want cleaner integration or batch automation, breakout.py provides a thin wrapper around the core scanner.
It exposes a run_breakout(...) API and mirrors the CLI options for convenient scripting.
Example Usage
python breakout.py --markets sp500,nyse --charts --weekly-confirm
This command scans for weekly-confirmed breakouts across the S&P500 and NYSE, generating complete interactive charts.
Trend and Crossover Finder: trends.py
Momentum investors will appreciate trends.py, which helps identify long candidates based on trend alignment or EMA crossovers.
- Trend Mode: EMA(fast) > EMA(slow) with both lines rising and price above fast EMA.
- Crossover Mode: Detects fast EMA crossing slow EMA within a recent window.
- Extras: Optional RSI floors, liquidity filters, and Ollama sentiment enrichment.
- Output: Immediate Plotly charts with overlays and rumor annotations.
Resistance Retest Analyzer: retest.py
Before many breakouts, prices repeatedly test resistance levels—a key signal for traders.
retest.py identifies these retest clusters, analyzing volume trends, pullback depth, and price tightening.
Configurable Heuristics
- Lookback windows and touch tolerances.
- Minimum touches and separation distances.
- Volume increase and higher-low patterns.
- Optional breakout confirmation.
Like other modules, it supports immediate chart generation and sentiment overlays.
Peer Comparison Module: compare_peers.py
Valuation context is essential. compare_peers.py compares a stock against industry peers using market cap, EV/EBITDA, EV/Sales, margin, and return metrics.
Visualization
- EV/Sales vs Gross Margin
- EV/EBITDA vs Operating Margin
Results are ranked and plotted in interactive scatter charts, making relative valuation instantly visible.
Desktop Interface: ui_breakout.py
For those who prefer a GUI over the terminal, ui_breakout.py provides a Tkinter desktop app.
Users can configure markets, filters, and indicators, monitor live logs, and open generated charts instantly. Each run spawns an independent process for easy cancellation and resource control.
Unified Environment and Conventions
All modules share the same core infrastructure:
- Pools and Markets: Unified index loaders with fallback to yfinance listings.
- Chart Output: Saved under
charts/<Market>/<TICKER>.htmlor.png. -
Environment Variables:
NEWS_SENTIMENT=1— enables sentiment modeOLLAMA_MODEL— selects local AI modelOLLAMA_PROMPT— customizes sentiment prompt
- Debug Mode:
--debugfor detailed per-ticker diagnostics.
Example Quick Commands
# Core scan
python test10.py --markets sp50 --charts
# Wrapper usage
python breakout.py --markets sp500,nyse --charts --weekly-confirm
# Trend selector
python trends.py --markets sp500 --crossover --cross-lookback 5 --charts
# Resistance retest
python retest.py --markets sp50 --min-touches 3 --charts
# Peer comparison
python compare_peers.py --ticker NVDA --charts
Conclusion
The SimpliBreakout toolkit unites technical analysis, multi-market data, and AI-assisted insights into a modular Python ecosystem.
Whether you’re coding custom strategies, scanning for market leaders, or seeking retest setups before breakouts, this suite offers a powerful blend of flexibility, visualization, and intelligence—ready for traders and developers alike.
Get in Touch with us
Related Posts
- Wazuh 解码器与规则:缺失的思维模型
- Wazuh Decoders & Rules: The Missing Mental Model
- 为制造工厂构建实时OEE追踪系统
- Building a Real-Time OEE Tracking System for Manufacturing Plants
- The $1M Enterprise Software Myth: How Open‑Source + AI Are Replacing Expensive Corporate Platforms
- 电商数据缓存实战:如何避免展示过期价格与库存
- How to Cache Ecommerce Data Without Serving Stale Prices or Stock
- AI驱动的遗留系统现代化:将机器智能集成到ERP、SCADA和本地化部署系统中
- AI-Driven Legacy Modernization: Integrating Machine Intelligence into ERP, SCADA, and On-Premise Systems
- The Price of Intelligence: What AI Really Costs
- 为什么你的 RAG 应用在生产环境中会失败(以及如何修复)
- Why Your RAG App Fails in Production (And How to Fix It)
- AI 时代的 AI-Assisted Programming:从《The Elements of Style》看如何写出更高质量的代码
- AI-Assisted Programming in the Age of AI: What *The Elements of Style* Teaches About Writing Better Code with Copilots
- AI取代人类的迷思:为什么2026年的企业仍然需要工程师与真正的软件系统
- The AI Replacement Myth: Why Enterprises Still Need Human Engineers and Real Software in 2026
- NSM vs AV vs IPS vs IDS vs EDR:你的企业安全体系还缺少什么?
- NSM vs AV vs IPS vs IDS vs EDR: What Your Security Architecture Is Probably Missing
- AI驱动的 Network Security Monitoring(NSM)
- AI-Powered Network Security Monitoring (NSM)













