Candlestick Patterns
Detected candlestick patterns in recent price history. Identifies reversal and continuation patterns including Doji, Hammer, Shooting Star, Engulfing, Morning/Evening Star, and Harami. Each pattern shows detection date, direction (bullish/bearish), and signal strength.
ka candle_patterns -s TSLA
Recent candlestick patterns detected for Tesla
ka candle_patterns -s AAPL
Apple candle patterns: reversals and continuations
ka candle_patterns -s SPY
S&P 500 candlestick pattern scan
ka candle_patterns -s NVDA
NVIDIA pattern detection: doji, hammer, engulfing
ka candle_patterns -s MSFT -l 60
Microsoft patterns in last 60 days
ka candle_patterns -s TSLA -output json
Tesla patterns as JSON
Market Regime Detection
Classifies the current market regime using five independent statistical lenses: Trend (ADX, +DI/-DI, SMA alignment), Volatility (HV short/long ratio, percentile), Memory (Hurst exponent via R/S analysis), Momentum (return autocorrelation at lag-1 and lag-5), and Structure (price vs SMA50/200, slope). Primary regimes: TRENDING-UP, TRENDING-DOWN, RANGING, BREAKOUT. Volatility regime: HIGH-VOL, NORMAL-VOL, LOW-VOL. Memory: PERSISTENT, RANDOM, MEAN-REVERTING. Suggests optimal strategy per regime.
ka regime -s AAPL -lookback 500
Apple regime over 2-year lookback
ka regime -s SPY -adx_period 20
S&P 500 regime with 20-period ADX
ka regime -s TSLA -output json
Tesla regime data as JSON
Liquidity Profile
Liquidity profile — average daily dollar volume, recent vs historical liquidity trend, high-low spread proxy, Amihud illiquidity ratio (return per $M traded), and days-to-trade calculator for $100k / $1M / $10M / $100M positions at 5% and 10% of average daily volume. Includes a liquidity grade from POOR to EXCELLENT.
ka liquidity -s NVDA -period 60
NVDA 60-day liquidity
SPY liquidity (best-in-class)
ka liquidity -s small-cap-symbol
—
Fibonacci Levels
Fibonacci retracement and extension levels calculated from the most significant recent swing high and low. Shows key levels at 23.6%, 38.2%, 50%, 61.8%, 78.6%, and extension levels at 127.2% and 161.8%. Useful for identifying potential support, resistance, and price targets.
NVIDIA Fibonacci levels with extension targets
Bitcoin Fibonacci levels: major swing analysis
ka fib -s TSLA -output json
Tesla Fibonacci levels as JSON
Gap Analysis
Statistical analysis of historical price gaps. Categorizes gaps by type (gap-up / gap-down), shows fill rate (how often gaps close), average gap size, median time to fill, and frequency. Useful for gap trading strategies and understanding price behavior after gaps.
Tesla gap analysis: fill rate, avg size, time to fill
Apple historical gap statistics and fill rates
NVIDIA gap analysis: frequent earnings gaps
ka gap-analysis -s TSLA -output json
Tesla gap data as JSON
Price Action Strategies
Price action signal analysis including breakout detection, support/resistance tests, trend line breaks, and inside/outside bar patterns. Shows recent signals with date, pattern type, direction, and historical success rate for each pattern type.
Tesla price action signals: breakouts and S/R tests
Apple price action analysis: recent pattern signals
ka price-actions -s TSLA -output json
Tesla price action signals as JSON
Technical Analysis Report
Full technical analysis report combining price data with key indicators. Includes RSI (9/14/20), MACD line/signal/histogram, Bollinger Bands, ATR, ADX/+DI/-DI, all moving averages (SMA/EMA 20/50/100/200), and a composite signal summary. Best for a quick complete technical picture of any symbol.
Full technical analysis report for Tesla
Apple TA: RSI, MACD, Bollinger Bands, MAs, ADX
Technical Analysis Signals
Comprehensive technical signal pack covering 15+ indicators. Includes MA crossover signals (SMA/EMA 20/50/200), RSI overbought/oversold, MACD crossover, Bollinger Band squeeze/breakout, Stochastic, ADX trend strength, and CCI signals. Output: signal table with direction (buy/sell/neutral) and strength.
Tesla full signal pack: MA, RSI, MACD, Bollinger, ADX
Apple technical signals across 15+ indicators
S&P 500 signal pack for market timing
NVIDIA signals: trending stock indicator sweep
Microsoft TA signals: current buy/sell/neutral status
ka ta-signals -s TSLA -output json
Tesla signals as JSON for automation
NASDAQ 100 comprehensive signal scan
Bitcoin technical signal pack
Volume Profile
Volume profile analysis showing price levels with the highest and lowest trading activity. Identifies the Point of Control (highest volume price), Value Area High/Low (70% of volume range), and high-volume nodes (HVN) / low-volume nodes (LVN). Key for institutional-level support/resistance analysis.
Tesla volume profile: POC, value area, HVN/LVN
Apple volume profile analysis over lookback period
S&P 500 volume profile: key institutional levels
NVIDIA volume profile: high-activity price zones
Unusual Volume
Detects days with statistically unusual trading volume — both spikes and unusually low volume. Shows date, actual volume, average volume, volume ratio, and price return on that day. Useful for spotting institutional accumulation, distribution, or news-driven volume events.
Tesla unusual volume days: spikes vs 20-day average
Apple volume anomalies: institutional activity signals
Chart Summary
Consolidated chart analysis combining patterns (50+ chart patterns), candle_patterns (doji, hammer, engulfing), levels (support and resistance), and trend (direction, slope, ADX) into a single report. Saves multi-call round-trips for LLM consumers and dashboards. Pure aggregator over existing endpoints.
TSLA full chart picture in one report
Relative Strength Rating
Relative strength rating (0-99) measuring price performance vs a universe of stocks and a benchmark over multiple periods. A score of 99 means the stock outperformed 99% of the universe. Includes 1-month, 3-month, 6-month, and 1-year RS components with composite score.
Tesla relative strength rating vs market universe
Apple RS rating: 1m/3m/6m/1y components
ka rel-strength -s TSLA -tf 2y
Tesla relative strength over 2-year window
ka rel-strength -s NVDA -output json
NVIDIA RS data as JSON
Momentum Analysis
Multi-period momentum analysis showing returns across 1-day, 1-week, 1-month, 3-month, 6-month, and 1-year timeframes. Includes momentum rank within peer group, RSI, trend direction, and 52-week high/low context. Useful for momentum screening and trend confirmation.
Tesla momentum: 1d/1w/1m/3m/6m/1y returns with RSI
Apple momentum analysis across all timeframes
NVIDIA momentum: AI-driven multi-period strength
Chart Pattern Scanner
Comprehensive chart pattern scanner detecting 50+ patterns across 8 categories: reversal (Head & Shoulders, Double/Triple Top/Bottom, V-Top), continuation (Flag, Pennant, Wedge, Cup & Handle), bilateral (Symmetrical Triangle, Broadening), directional (Ascending/Descending Triangle, Channel), volatility (VCP, Inside Bar, NR4/NR7, Compression Breakout), harmonic (ABCD, Gartley, Bat, Butterfly, Crab), price action (BOS, CHOCH, FVG, Liquidity Sweep), and hybrid patterns. Each pattern scored 0-100 for confidence.
ka patterns -s SPY -lookback 500
S&P 500 pattern scan over 2 years
ka patterns -s TSLA -output json
Tesla chart patterns as JSON
HMM Regime Detection
Hidden Markov Model regime detection fitting a 2-3 state Gaussian HMM to daily returns via the Baum-Welch (EM) algorithm. Probabilistically identifies bull, bear, and sideways regimes. Returns current regime probabilities, state transition matrix, expected duration per regime, full regime history timeline, and per-regime statistics (mean return, volatility, Sharpe). Pure Python implementation — no external ML dependencies.
ka regime-hmm -s AAPL -tf 10y
Apple HMM regime over 10-year history
ka regime-hmm -s SPY -max_iter 200
S&P 500 HMM with more EM iterations
ka regime-hmm -s TSLA -output json
Tesla HMM regime data as JSON
Stretch & Reversion Analysis
How far is price from its mean, and what historically happens next? Computes z-score of close vs SMA20/SMA50/SMA200, Bollinger %B and bandwidth, RSI(14), and percent deviation from each MA. The key insight: finds every historical stretch event (crossing the z-score threshold) in the same direction as the current stretch, then measures forward returns at 5d/10d/20d/63d and reversion probability. Quantifies whether buying the dip or fading the rip has edge on this specific symbol.
S&P 500 reversion analysis with forward returns
ka mean-reversion -s TSLA -output json
Tesla mean reversion data as JSON
Gap Fade Probability
Gap fade probability engine — analyzes every historical gap (up/down) by size category (tiny/small/medium/large/huge) and calculates same-day fill rate, multi-day fill rate, average fill time, continuation %, and average close return. Shows today's gap with a fade/no-fade verdict based on historical fill rate for that gap type. Includes day-of-week fill rates, recent gap history, and a fade strategy guide.
Tesla gap fade analysis: fill rates by gap type
ka gap-fade -s NVDA -tf 3y
NVIDIA gap fade over last 3 years
ka gap-fade -s AAPL -tf 5y
Apple 5-year gap history: which gaps fill?
S&P 500 gap fade: index gap behavior
ka gap-fade -s TSLA -min_gap 1.0
Tesla gaps 1%+ only: large gap analysis
ka gap-fade -s AMD -tf 2y
AMD gap fade: semiconductor gap patterns
ka gap-fade -s QQQ -sd 2022-01-01
QQQ gaps since 2022: bear market gap behavior
ka gap-fade -s MSFT -tf 10y
Microsoft 10-year gap fade history
ka gap-fade -s BTCUSD -tf 3y
Bitcoin gap fade analysis
ka gap-fade -s META -sd 2023-01-01 -ed 2025-03-28
Meta gaps 2023-2025
Trend Exhaustion Scanner
Trend exhaustion scanner — detects when a trend is running on fumes before reversal. Combines 5 signals: RSI divergence (price new high, RSI lower high), volume divergence (price extends on fading volume), DeMark TD Sequential countdown (9/13 setups), MA extension z-score (distance from 20/50/200 SMA), and RSI overbought/oversold extremes. Outputs a 0-100 composite exhaustion score with active signal list and per-component detail.
NVIDIA exhaustion scan: is the AI rally running out of steam?
Tesla trend exhaustion: divergences, TD Sequential, MA extension
ka exhaustion -s SPY -tf 2y
S&P 500 exhaustion analysis over 2 years
Apple exhaustion: RSI div, volume div, DeMark countdown
ka exhaustion -s QQQ -tf 6m
NASDAQ 100 short-term exhaustion check
ka exhaustion -s AMD -tf 1y
AMD 1-year exhaustion scan
ka exhaustion -s MSFT -sd 2024-01-01
Microsoft exhaustion since Jan 2024
ka exhaustion -s BTCUSD -tf 2y
Bitcoin trend exhaustion analysis
Meta exhaustion: is momentum fading?
ka exhaustion -s IWM -tf 3y
Russell 2000 exhaustion: small-cap cycle top/bottom
BB Squeeze Detector
Bollinger Band squeeze detector (TTM Squeeze inspired). When Bollinger Bands contract inside Keltner Channels, volatility is compressed and a directional explosion is imminent. Shows current squeeze status (on/off/fired), squeeze duration, momentum direction bias, BB width percentile, historical squeeze events with 5d/10d/20d post-squeeze returns, win rates, and bullish/bearish outcome ratios. Includes recent bar-by-bar squeeze + momentum table.
Tesla squeeze: current status, momentum bias, historical outcomes
NVIDIA squeeze detection with post-squeeze return stats
ka squeeze -s AAPL -tf 2y
Apple squeeze analysis over last 2 years
S&P 500 squeeze history: 3-year lookback
ka squeeze -s TSLA -bb_len 20 -kc_mult 1.5
Tesla with default TTM squeeze params
ka squeeze -s MSFT -sd 2023-01-01
Microsoft squeezes since Jan 2023
NASDAQ 100 ETF: current squeeze state
ka squeeze -s BTCUSD -tf 2y
Bitcoin squeeze: crypto volatility compression
AMD 5-year squeeze history with outcome stats
ka squeeze -s TSLA -bb_mult 2.0 -kc_mult 1.0
Tighter Keltner for more frequent signals
Multi-TF Trend Sweep
Multi-timeframe trend sweep for 1-20 symbols. For each symbol, analyzes trend direction on daily, weekly, and monthly timeframes using SMA alignment (10/20/50/200), ADX trend strength, DI+/DI- directional indicators, and 10-bar rate of change. Master alignment table shows which symbols are aligned across all timeframes (ALIGNED UP/DOWN) vs conflicted. Includes per-symbol detail with price-vs-MA checks, SMA stack order, and ADX strength labels.
ka sweep -s NVDA,AMD,TSLA,AAPL,META
Sweep 5 tech stocks: who is aligned across all timeframes?
ka sweep -s SPY,QQQ,IWM,DIA
Major index ETFs: daily/weekly/monthly trend alignment
Tesla single-symbol deep multi-timeframe analysis
ka sweep -s AAPL,MSFT,GOOGL,AMZN,META,NVDA,TSLA -tf 3y
Mag 7 sweep with 3-year lookback
ka sweep -s XOM,CVX,COP,SLB,EOG -sd 2023-01-01
Energy sector sweep since Jan 2023
ka sweep -s JPM,BAC,WFC,GS,MS,C -sd 2022-01-01 -ed 2024-12-31
Bank sector sweep 2022-2024
ka sweep -s GLD,SLV,TLT,BND -tf 2y
Safe havens: are gold and bonds aligned?
ka sweep -s BTCUSD,ETHUSD,SPY
Crypto vs equity multi-TF trend comparison
ka sweep -s TSLA,RIVN,NIO,LCID -tf 1y
EV sector sweep: last 1 year alignment
ka sweep -s NVDA,AMD,TSM,AVGO,INTC -sd 2020-01-01 -ed 2025-03-28
Semiconductor sweep 2020-2025
Entry/Exit Zones
Entry/exit zone calculator combining Fibonacci retracements, pivot points (daily/weekly/monthly), VWAP anchored levels (YTD/QTD/MTD with sigma bands), and ATR-based stop/target zones into one actionable table. Shows ATR stops (tight/normal/wide), targets at 1R/2R/3R reward, all pivot levels, Fibonacci retracement and extension levels, nearest support/resistance with distance, and a unified sorted level map with current price marker.
Tesla entry/exit zones: stops, targets, Fib, pivots, VWAP
NVIDIA actionable levels for trade planning
ka entry-exit -s AAPL -tf 1y
Apple zones with 1-year Fibonacci swing
S&P 500 key levels: pivots, VWAP, ATR stops
ka entry-exit -s TSLA -atr_mult 2.0
Tesla with wider 2x ATR stops
ka entry-exit -s MSFT -tf 3m
Microsoft zones from 3-month swings
Bitcoin entry/exit zones with all level types
ka entry-exit -s AMD -sd 2024-01-01
AMD zones using 2024+ price action
ka entry-exit -s QQQ -tf 6m
NASDAQ 100 ETF 6-month entry/exit map
ka entry-exit -s GOOGL -atr_mult 1.0
Google with tight 1x ATR stops
Support & Resistance Levels
Identifies key support and resistance levels using three methods: volume profile (high-volume nodes), swing pivot analysis (local H/L extremes), and price clustering density (KDE-based). Levels are scored 0-100 based on volume, touches, density, recency, and method overlap. Outputs separate support and resistance lists sorted by proximity to current price.
Tesla S/R levels from volume profile, swings, and clustering
Apple support/resistance from 2 years of data
ka levels -s NVDA -n_levels 10
NVIDIA top 10 S/R levels by strength score
ka levels -s TSLA -output json
Tesla levels data as JSON
Trend Quality Score
5-component trend quality score (0-100) covering: R² of log-price regression (30%), ADX strength (25%), Higher High/Higher Low consistency (20%), volume-adjusted slope t-statistic (15%), and percentage of trending days (10%). Output includes multi-timeframe scores (20d, 63d, 126d) plus full window, with detailed component breakdown.
Tesla trend quality score: 5-component analysis
Apple trend score: R², ADX, HH/HL, slope, trend days
Tesla 2-year trend quality analysis
ka trend -s SPY -adx_period 20
S&P 500 trend with 20-period ADX
ka trend -s NVDA -output json
NVIDIA trend data as JSON
ATR Range Analysis
ATR context — current ATR vs historical percentile, expected daily range in dollars, recent range expansion/contraction trend, stop placement at 1/2/3 ATR, and position sizing helper that converts a dollar risk amount into share count given a 1-ATR stop.
TSLA daily ATR with stops and sizing
ka range -s NVDA -period 20
NVDA 20-day ATR
ka range -s AAPL -period 14
AAPL 14-day ATR