AI + New Chat
How CLI Commands Work
KlickAnalytics CLI commands follow a simple structure:
ka [command] [flags]
- ka = the CLI program
- command = the action you want to perform
- flags = optional parameters that modify the command
Flags usually start with - provide additional input like symbol, date ranges, or limits.
Example 1 — Company Profile
ka profile -s TSLA
- profile = command to fetch company profile information
- -s = symbol
Example 2 — Historical Prices
ka prices -s TSLA -sd 2025-01-01 -ed 2025-12-31 -limit 100
- prices = command to fetch historical price data
- -s = symbol
- -sd = start date
- -ed = end date
- -limit = number of rows to return
Common Flags
| Flag | Meaning |
|---|---|
| -s | Symbol |
| -sd | Start date (YYYY-MM-DD) |
| -ed | End date (YYYY-MM-DD) |
| -limit | Limit number of results |
| -period | Period length |
| -tf | Timeframe |
| -datatype | Output format (json or text) |
Tip
You can always view command help:
ka help
ka help profile
ka help prices
ka help profile
ka help prices
This will show examples and available flags for each command.
►
Quick Start
4
help
How to use the ka commands
Company Profile
Full company profile including business description, sector, industry, CEO, employees, IPO date, exchange, country, and website. Output includes a structured summary with key company identifiers and a narrative business overview.
ka profile -s TSLA
Tesla company profile with business description and key details
ka profile -s AAPL
Apple company profile: sector, industry, employees, CEO
Latest Quote
Real-time or latest market quote for any symbol. Returns bid, ask, open, high, low, close, volume, 52-week high/low, market cap, P/E ratio, and day change percentage. Output is a formatted market snapshot.
ka quote -s TSLA
Latest quote for Tesla with price, change, volume
ka quote -s AAPL
Apple latest quote: open, high, low, close, volume
Screener
Multi-field stock screener — filter across 100+ fields: returns, RSI, ADX, MAs, sector, marketcap and more. Supports >, <, =, IN, LIKE operators and AND combinations.
ka screener -filter "return_1m > 10 AND rsi14 < 70 AND adx14 > 20"
Momentum stocks: 1M return > 10%, RSI not yet overbought, strong ADX trend
ka screener -filter "exchange = NASDAQ AND return_1m > 5 AND adx14 > 25"
NASDAQ stocks: 5%+ monthly gain with confirmed trend
ka screener -filter "exchange = NYSE AND marketcap_type = Large AND total_ma_buy_signals >= 7" -sort "return_1m:desc,adx14:desc"
NYSE large-caps: full MA bullish alignment, sorted by 1M return
ka screener -filter "exchange IN NASDAQ,NYSE AND rsi14 < 35 AND return_1m < -10"
US oversold candidates: RSI < 35 and 10%+ monthly loss
ka screener -filter "exchange = LSE AND sector = Technology AND return_3m > 10" -sort return_3m
UK Tech: 3-month return > 10%, sorted by performance
ka screener -filter "exchange = TSX AND sector = Basic Materials AND adx14 > 30"
Canada Basic Materials: strong ADX trending stocks
ka screener -filter "exchange = ASX AND return_1y > 20 AND adx14 > 25" -sort "return_1y:desc,adx14:desc"
Australia: 1-year return > 20% with confirmed trend strength
ka screener -filter "is_us_exchange = Y AND return_ytd > 20 AND total_ma_buy_signals >= 7"
All US exchanges: YTD > 20% with full MA bullish stack
ka screener -filter "exchange IN LSE,EURONEXT,XETRA AND sector = Financials AND return_1y > 10"
European Financials: 1-year return > 10% across major exchanges
ka screener -filter "exchange = HKSE AND return_3m > 10 AND rsi14 < 65" -sort "return_3m:desc"
Hong Kong: 3-month gainers not yet overbought
ka screener -filter "sector = Technology AND marketcap_type = Large AND exchange IN NASDAQ,NYSE" -sort "marketcap:desc,return_1m:desc"
US large-cap Tech: sorted by market cap then 1M return
ka screener -filter "pct_from_52w_high > -5 AND return_1y > 20 AND exchange = NASDAQ" -sort return_1y
NASDAQ near 52-week high with strong annual return
ka screener -filter "currency = USD AND return_ytd > 15 AND adx14 > 30 AND rsi14 < 70" -sort "return_ytd:desc,adx14:desc"
USD stocks: YTD > 15% with strong trend, not yet overbought
ka screener -filter "marketcap_type IN Large,Very Large AND return_1m < -10 AND rsi14 < 40" -sort "return_1m:asc"
Large-cap dip watch: big names down 10%+ monthly and oversold
ka screener -fields
Show full catalogue of all available filter fields and operators
►
Price & Market Data
6
Historical Prices
Historical OHLCV (Open, High, Low, Close, Volume) price data with split and dividend adjustments. Supports custom date ranges and result limits. Output includes adjusted and unadjusted close prices for each trading day.
ka prices -s TSLA
Last 1 year of daily prices for Tesla
ka prices -s SPY -l 252
Last 252 trading days (1 year) for SPY
ka prices -s MSFT -sd 2023-01-01
Microsoft prices since January 2023
ka prices -s NVDA -l 60
Last 60 days of NVIDIA prices
ka prices -s BTCUSD -l 365
Bitcoin daily prices for last year
ka prices -s TSLA -output json
Tesla prices as JSON for charting or analysis
ka prices -s AAPL -sd 2020-01-01 -ed 2020-12-31
Apple prices during 2020
Best & Worst Days
Top N best and worst single-day return events in a symbol's history. Shows date, return percentage, and surrounding market context. Useful for understanding tail risk, volatility events, and how the stock behaves during extreme market moves.
ka bestdays -s TSLA
Tesla's top 10 best and worst single-day returns ever
ka bestdays -s AAPL
Apple's biggest up and down days in history
ka bestdays -s SPY
S&P 500 extreme daily moves: crashes and rallies
ka bestdays -s NVDA
NVIDIA best/worst days with AI-era context
ka bestdays -s BTCUSD
Bitcoin's most extreme daily price swings
ka bestdays -s AMZN -l 20
Amazon's top 20 best and worst days
ka bestdays -s TSLA -output json
Tesla extreme days data as JSON
ka bestdays -s GME
GameStop: extreme short squeeze and collapse days
Seasonal Patterns
Monthly and quarterly seasonal return patterns based on full price history. Shows average return, win rate, and best/worst months for each calendar period. Useful for timing entries and exits based on historical tendencies.
ka seasonality -s TSLA
Tesla monthly seasonality: avg return and win rate by month
ka seasonality -s AAPL
Apple seasonal patterns: best and worst months historically
ka seasonality -s SPY
S&P 500 ETF seasonality: classic sell-in-May patterns
ka seasonality -s TSLA -output json
Tesla seasonality data as JSON
Price Distribution
Statistical price distribution analysis showing where a stock has spent most of its time. Includes frequency histogram, percentile ranking of current price, mean, median, standard deviation, and skewness of the price distribution. Useful for understanding price ranges and current price context.
ka price-dist -s TSLA
Tesla price distribution: histogram, percentile of current price
ka price-dist -s AAPL
Apple price distribution over full history
ka price-dist -s SPY
S&P 500 price distribution and current percentile
Up/Down Rally Analysis
Analyzes historical rally and pullback cycles. Shows average rally duration (days), average rally magnitude (%), average pullback duration, average pullback magnitude, and current cycle status. Useful for estimating how long and how far typical moves last for a given symbol.
ka updown -s TSLA
Tesla rally/pullback cycles: duration and magnitude stats
ka updown -s AAPL
Apple up/down cycle analysis over full history
ka updown -s SPY
S&P 500 bull/bear cycle statistics
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.
ka gap-analysis -s TSLA
Tesla gap analysis: fill rate, avg size, time to fill
ka gap-analysis -s AAPL
Apple historical gap statistics and fill rates
ka gap-analysis -s NVDA
NVIDIA gap analysis: frequent earnings gaps
ka gap-analysis -s TSLA -output json
Tesla gap data as JSON
►
Earnings & Fundamentals
6
Earnings History
Quarterly and annual earnings data including EPS (actual vs estimate), revenue (actual vs estimate), surprise percentage, and reporting date. Useful for tracking earnings trends and beat/miss history over time.
ka earnings -s TSLA
Tesla earnings history: EPS actual vs estimate
ka earnings -s AAPL
Apple quarterly EPS and revenue with surprise %
ka earnings -s MSFT -l 12
Last 12 quarters of Microsoft earnings
ka earnings -s TSLA -output json
Tesla earnings data as JSON
dividends
Get historical dividends of a symbol
ka dividends -s AMZN
Get historical dividends of AMZN
splits
Get historical splits of a symbol
ka splits -s AMZN
Get historical splits of AMZN
Earnings Reaction Moves
Historical earnings reaction analysis: how much the stock moved in the trading session immediately after each earnings report. Shows pre-earnings implied move vs actual move, gap direction, and trend over recent quarters. Useful for options traders and earnings event strategies.
ka earnings-moves -s TSLA
Tesla earnings reaction: actual vs implied move each quarter
ka earnings-moves -s TSLA -output json
Tesla earnings moves as JSON
Earnings Summary
Summary of recent earnings performance trends. Shows EPS and revenue trajectory over the last 8-12 quarters, growth rates, beat/miss streak, and forward estimates if available. Provides a quick fundamental health check through the earnings lens.
ka earnings-summary -s TSLA
Tesla earnings summary: EPS trend and growth trajectory
ka earnings-summary -s AAPL
Apple quarterly earnings trend with beat streak
ka earnings-summary -s NVDA
NVIDIA earnings summary: revenue growth acceleration
ka earnings-summary -s MSFT
Microsoft earnings summary with forward estimates
ka earnings-summary -s AMZN
Amazon earnings trend: AWS vs retail breakdown
ka earnings-summary -s TSLA -output json
Tesla earnings summary as JSON
ka earnings-summary -s META
Meta earnings summary: margin and revenue trend
ka earnings-summary -s GOOGL
Alphabet earnings summary: search and cloud
Post-Earnings Drift
Post-earnings price drift analysis: how the stock performs in the 1, 5, 10, 20, and 60 days after each earnings report. Shows average drift by beat/miss/in-line outcome, and cumulative drift chart. Based on the academic Post-Earnings Announcement Drift (PEAD) effect.
ka earnings-drift -s TSLA
Tesla post-earnings drift: 1/5/10/20/60 day returns after EPS
ka earnings-drift -s AAPL
Apple PEAD: drift after beats vs misses
ka earnings-drift -s NVDA
NVIDIA earnings drift: strong beat momentum
►
Technical Analysis
9
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
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.
ka fib -s NVDA
NVIDIA Fibonacci levels with extension targets
ka fib -s BTCUSD
Bitcoin Fibonacci levels: major swing analysis
ka fib -s TSLA -output json
Tesla Fibonacci levels 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.
ka price-actions -s TSLA
Tesla price action signals: breakouts and S/R tests
ka price-actions -s AAPL
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.
ka ta -s TSLA
Full technical analysis report for Tesla
ka ta -s AAPL
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.
ka ta-signals -s TSLA
Tesla full signal pack: MA, RSI, MACD, Bollinger, ADX
ka ta-signals -s AAPL
Apple technical signals across 15+ indicators
ka ta-signals -s SPY
S&P 500 signal pack for market timing
ka ta-signals -s NVDA
NVIDIA signals: trending stock indicator sweep
ka ta-signals -s MSFT
Microsoft TA signals: current buy/sell/neutral status
ka ta-signals -s TSLA -output json
Tesla signals as JSON for automation
ka ta-signals -s QQQ
NASDAQ 100 comprehensive signal scan
ka ta-signals -s BTCUSD
Bitcoin technical signal pack
Technical Rank
Multi-symbol 0-100 composite score leaderboard. Ranks symbols across 6 components: Momentum (25%), Trend Quality (20%), Relative Strength (15%), RSI Positioning (15%), Volume Confirmation (15%), and ATH Distance (10%). Outputs a ranked leaderboard for quick comparative screening.
ka technical-rank -s AAPL,MSFT,NVDA,TSLA,GOOGL,META
Tech giants ranked by composite technical score
ka technical-rank -s SPY,QQQ,IWM,DIA,GLD,TLT,SLV,USO
Major ETF technical ranking
ka technical-rank -s AAPL,MSFT,GOOGL,AMZN,META,NVDA,TSLA,AVGO,AMD,ORCL
Top 10 tech stocks ranked
ka technical-rank -s JPM,BAC,WFC,GS,MS,C
Bank sector technical ranking
ka technical-rank -s XOM,CVX,COP,SLB,EOG
Energy sector technical ranking
ka technical-rank -s TSLA,RIVN,NIO,LCID,F,GM
EV and auto sector ranking
ka technical-rank -s AAPL,MSFT,NVDA,TSLA -output json
Top tech ranking as JSON
ka technical-rank -s SPY,QQQ,IWM,EFA,EEM,GLD,TLT,BND
Global asset class ranking
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.
ka levels -s TSLA
Tesla S/R levels from volume profile, swings, and clustering
ka levels -s AAPL -tf 2y
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.
ka trend -s TSLA
Tesla trend quality score: 5-component analysis
ka trend -s AAPL
Apple trend score: R², ADX, HH/HL, slope, trend days
ka trend -s TSLA -tf 2y
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
Chart Pattern Scanner
Scans 50+ chart patterns across 8 categories: reversal (double top/bottom, H&S, triple top/bottom, V-reversal), continuation (flags, pennants, wedges, rectangle, cup & handle), bilateral (symmetrical triangle, broadening), directional (ascending/descending triangle, channel), volatility (VCP, NR4/NR7, compression, gap consolidation), harmonic (ABCD, Gartley, Bat, Butterfly, Crab), price action (BOS/CHoCH, FVG, pin bars, engulfing, liquidity sweep, order block), and hybrid (short squeeze, HVN breakout, Wyckoff). Each detected pattern returns confidence score, active/historical status, key levels (breakout, target, stop), and notes.
ka patterns -s TSLA
—
ka patterns -s AAPL -lookback 504
—
ka patterns -s NVDA -categories reversal,continuation
—
ka patterns -s SPY -min_confidence 60
—
ka patterns -s TSLA -active_window 10 -order 3
—
ka patterns -s MSFT -categories harmonic -min_confidence 50
—
►
Volume & Volatility
3
Historical Volatility
Historical (realized) volatility analysis across multiple rolling windows (10d, 20d, 30d, 60d, 90d, 1y). Shows annualized volatility percentages, volatility trend, and comparison to 52-week average. Useful for options pricing, risk assessment, and position sizing.
ka volatility -s TSLA
Tesla realized volatility across all windows
ka volatility -s AAPL
Apple volatility: 10d, 20d, 30d, 60d, 90d annualized
ka volatility -s VIX
VIX index volatility analysis
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.
ka vol-profile -s TSLA
Tesla volume profile: POC, value area, HVN/LVN
ka vol-profile -s AAPL
Apple volume profile analysis over lookback period
ka vol-profile -s SPY
S&P 500 volume profile: key institutional levels
ka vol-profile -s NVDA
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.
ka vol-unusual -s TSLA
Tesla unusual volume days: spikes vs 20-day average
ka vol-unusual -s AAPL
Apple volume anomalies: institutional activity signals
►
Analytics
12
Quant Statistics
Comprehensive quantitative statistics report. Includes CAGR, Sharpe ratio, Sortino ratio, Calmar ratio, max drawdown, win rate, profit factor, average gain/loss, best/worst day, monthly returns breakdown, and risk-adjusted performance metrics.
ka quantstats -s TSLA
Full quant stats for Tesla: CAGR, Sharpe, drawdown
ka quantstats -s AAPL
Apple performance analytics: risk-adjusted returns
ka quantstats -s SPY -l 252
S&P 500 stats for last 1 year
ka quantstats -s NVDA -l 504
NVIDIA 2-year quant stats
ka quantstats -s BTCUSD
Bitcoin quantitative performance report
ka quantstats -s MSFT -output json
Microsoft quant stats as JSON
ka quantstats -s QQQ -l 756
NASDAQ 100 3-year quantitative report
ka quantstats -s GLD
Gold ETF risk-return statistics
Trader Statistics
Trading-focused statistics: win rate, average gain, average loss, profit factor, expectancy, average holding period, largest win/loss, and consecutive win/loss streaks. Helps evaluate the historical tradability and edge of a symbol.
ka traderstats -s TSLA
Tesla trader stats: win rate, profit factor, expectancy
ka traderstats -s AAPL
Apple trading statistics across full history
ka traderstats -s SPY -l 252
S&P 500 trader stats for last year
ka traderstats -s TSLA -output json
Tesla trader stats as JSON
Correlation Matrix
Pearson correlation matrix for 2-10 symbols over a selected time period. Shows pairwise correlations from -1 (perfectly inverse) to +1 (perfectly correlated). Useful for portfolio diversification analysis and identifying hedging relationships. Includes a formatted heatmap-style text output.
ka corr-matrix -s TSLA,AAPL,MSFT,NVDA,GOOGL
Correlation matrix for 5 major tech stocks
ka corr-matrix -s SPY,QQQ,IWM,DIA
Major US ETF correlations: diversification check
ka corr-matrix -s TSLA,GLD,TLT,SPY
Tesla vs defensive assets correlation
ka corr-matrix -s AAPL,MSFT,GOOGL,META,AMZN -tf 2y
Big Tech 2-year correlation matrix
ka corr-matrix -s BTCUSD,ETHUSD,SPY,GLD
Crypto vs traditional assets correlation
ka corr-matrix -s XOM,CVX,COP,SLB -tf 1y
Energy sector internal correlation
ka corr-matrix -s TSLA,RIVN,NIO,LCID
EV manufacturers correlation matrix
ka corr-matrix -s AAPL,MSFT,NVDA,TSLA,GOOGL,META,AMZN -output json
Big Tech correlation as JSON
Drawdown Analysis
Comprehensive drawdown analysis showing all historical drawdown periods. Includes maximum drawdown, average drawdown, median recovery time, current drawdown from peak, longest drawdown period, and underwater equity curve. Essential for risk assessment and strategy evaluation.
ka drawdown -s TSLA
Tesla drawdown analysis: max DD, recovery, underwater periods
ka drawdown -s AAPL
Apple drawdown history with recovery times
ka drawdown -s TSLA -tf 3y
Tesla drawdown analysis for last 3 years
ka drawdown -s TSLA -output json
Tesla drawdown 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.
ka momentum -s TSLA
Tesla momentum: 1d/1w/1m/3m/6m/1y returns with RSI
ka momentum -s AAPL
Apple momentum analysis across all timeframes
ka momentum -s NVDA
NVIDIA momentum: AI-driven multi-period strength
Multi-Symbol Comparison
Side-by-side comparison of 2-10 symbols across key metrics: returns (1d/1m/3m/1y), volatility, Sharpe ratio, beta vs SPY, RSI, ADX, max drawdown, and market cap. Output is a formatted comparison table. Ideal for peer analysis, ETF comparison, and portfolio candidate screening.
ka compare -s AAPL,MSFT,GOOGL,META,AMZN
Big Tech 5-way comparison: returns, vol, Sharpe
ka compare -s TSLA,RIVN,NIO,LCID
EV manufacturers head-to-head comparison
ka compare -s SPY,QQQ,IWM,DIA,GLD,TLT
Major ETF comparison: all asset classes
ka compare -s TSLA,AAPL -tf 2y
Tesla vs Apple 2-year performance comparison
ka compare -s JPM,BAC,WFC,GS,MS
Major bank comparison
ka compare -s BTCUSD,ETHUSD,GLD,SPY
Crypto vs traditional assets
ka compare -s NVDA,AMD,INTC,TSM
Semiconductor sector comparison
ka compare -s AAPL,MSFT,GOOGL,AMZN -output json
Big 4 tech comparison as JSON
Beta Analysis
Beta analysis vs a benchmark (default: SPY). Reports beta, alpha, R-squared, correlation, and tracking error over multiple timeframes. Includes rolling beta chart to show how beta has changed over time. Useful for understanding a stock's systematic risk and market sensitivity.
ka beta -s TSLA
Tesla beta vs SPY: alpha, R², correlation, rolling beta
ka beta -s AAPL
Apple beta analysis vs S&P 500
ka beta -s TSLA -b QQQ
Tesla beta vs NASDAQ 100 (tech-adjusted beta)
ka beta -s TSLA -tf 2y
Tesla 2-year beta analysis
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.
ka rel-strength -s TSLA
Tesla relative strength rating vs market universe
ka rel-strength -s AAPL
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
streaks
Multi-type streak analysis for a symbol. Tracks consecutive up/down price days, days trading above or below key moving averages (SMA20, SMA50, SMA200), consecutive high or low volume days, and RSI zone streaks (overbought, oversold, bullish, bearish). Each streak type shows the current active streak, historical stats (count, average length, max length, average return), and the top longest historical streaks. Use -type to focus on a specific streak category, -threshold to filter noise from small price moves, and -lookback to control the analysis window.
ka streaks -s AAPL
show all streak types for AAPL (price, SMA, volume, RSI)
ka streaks -s TSLA -type price
price up/down streaks only
ka streaks -s NVDA -type sma
consecutive days above/below SMA20/50/200
ka streaks -s MSFT -type volume
consecutive high/low volume day streaks
ka streaks -s AAPL -type rsi
RSI zone streaks (overbought/oversold/bullish/bearish)
ka streaks -s TSLA -lookback 504
analyse streaks over last 2 years (~504 bars)
ka streaks -s AAPL -type price -threshold 1
price streaks with moves > 1% only
ka streaks -s GOOGL -top_n 10 -output json
top 10 streaks per type as JSON
Pairs Trading Analysis
Pairs trading statistical framework for two symbols. Computes OLS hedge ratio, log-price spread, rolling z-score with historical extremes, ADF cointegration test (pure numpy — no statsmodels), half-life of mean reversion via Ornstein-Uhlenbeck regression, price correlation, and generates a directional entry/exit signal (LONG_SPREAD / SHORT_SPREAD / WATCH / NEUTRAL) based on configurable z-score thresholds. Parameters: symbol (2 tickers), lookback (bars), zscore_window, spread_type (log/price), entry_z, exit_z, adf_maxlag.
ka pairs -s TSLA,RIVN
basic pairs analysis with default settings
ka pairs -s AAPL,MSFT
compare two large-cap tech stocks
ka pairs -s SPY,QQQ -lookback 504
2-year lookback on index ETF pair
ka pairs -s TSLA,RIVN -zw 30 -ez 1.5 -xz 0.3
tighter z-score windows and entry threshold
ka pairs -s GLD,SLV -spread_type log
precious metals pair with log spread
ka pairs -s MSFT,GOOGL -lookback 252
1-year analysis
ka pairs -s SPY,IWM -zw 60 -ez 2.0
large vs small cap ETFs
ka pairs -s AAPL,MSFT -output json
JSON output for programmatic use
Market Regime Detection
Market regime detection for a symbol. Classifies the current regime using five statistical lenses: (1) Trend — ADX, +DI/-DI direction, SMA alignment; (2) Volatility — short vs long HV ratio and percentile rank; (3) Memory — Hurst exponent via R/S analysis (pure numpy) and return autocorrelation; (4) Structure — price vs SMA50/200, SMA slope. Outputs primary regime (TRENDING-UP / TRENDING-DOWN / RANGING / MEAN-REVERTING / HIGH-VOL-CHOPPY / LOW-VOL-COMPRESSION / CRASH-TRENDING / BREAKOUT-RALLY), plus directional / volatility / memory sub-regimes and a concrete strategy suggestion.
ka regime -s SPY
detect current market regime for S&P 500 ETF
ka regime -s TSLA
regime analysis for an individual stock
ka regime -s QQQ -lookback 504
2-year lookback on Nasdaq ETF
ka regime -s GLD -lookback 126
6-month regime on gold ETF
ka regime -s IWM -adx_period 20
regime with longer ADX smoothing
ka regime -s SPY -vol_short 5 -vol_long 30
tighter volatility windows
ka regime -s TSLA -output json
JSON output for programmatic use
ka regime -s BTCUSD
crypto regime detection
Mean-Reversion / Stretch & Reversion Analysis
Stretch & Reversion Analysis — quantifies how far price is from its mean and historically what happens next. Computes z-score of close vs SMA20/50/200 (rolling std), Bollinger %B and bandwidth (20d 2σ), RSI(14) with overbought/oversold label, % deviation from each MA, and stretch level (NEUTRAL/MILD/MODERATE/EXTREME). The key feature: finds every historical occurrence of a similar stretch event (same direction, z-score above threshold) and computes forward returns at 5d/10d/20d/63d with mean, median, p10/p90 distribution, positive-day percentage, reversion probability (% of events where |z| dropped back below exit_z), and median/average days to revert.
ka mean-reversion -s TSLA
full stretch analysis with default settings
ka mean-reversion -s SPY
mean-reversion on S&P 500 ETF
ka mean-reversion -s TSLA -lookback 1008
4-year lookback for more historical events
ka mean-reversion -s AAPL -stretch_z 2.0
only flag extreme stretches (2σ)
ka mean-reversion -s QQQ -stretch_z 1.0
flag mild stretches (1σ)
ka mean-reversion -s TSLA -max_fwd 20
look only 20 bars forward for reversion
ka mean-reversion -s GLD -lookback 756
3-year lookback on gold ETF
ka mean-reversion -s SPY -output json
JSON output for programmatic use
►
Portfolio & Risk
3
Formula Scanner
Custom OHLCV formula scanner. Evaluate any mathematical expression over historical price data and see when the condition was true. Supports functions like avg(), std(), max(), min() over rolling windows. Useful for backtesting entry signals and custom indicator research.
ka formula-scan -s TSLA -expr "(C > O) and (V > avg(V,10))"
Tesla: up days with above-average volume
ka formula-scan -s SPY -output json -expr "C > avg(C,20)"
SPY above 20-day MA as JSON
Portfolio Analytics
Portfolio-level analytics for 2-20 symbols with optional position details (shares, cost basis, purchase date). Computes weighted returns, portfolio volatility, Sharpe ratio, correlation matrix, individual risk contribution, and minimum-variance optimization. Holdings format: SYMBOL:shares:avg_cost:purchase_date (all fields after symbol are optional).
ka portfolio -s AAPL,MSFT,GOOGL,TSLA
Equal-weight portfolio of 4 tech stocks
ka portfolio -s SPY,QQQ,GLD,TLT,BND
Diversified ETF portfolio analysis
ka portfolio -holdings "AAPL:100:150.50:2024-01-15,MSFT:50:280.00:2023-06-01,TSLA:20:350.00"
Portfolio with shares, cost basis and purchase dates
ka portfolio -holdings "SPY:200:420.00,QQQ:150:340.00,GLD:100:185.00,TLT:100:95.00"
ETF portfolio with position sizes
ka portfolio -s AAPL,MSFT,GOOGL,TSLA -weights 0.4,0.3,0.2,0.1
Custom weighted portfolio
ka portfolio -s AAPL,MSFT,GOOGL,TSLA -tf 2y -rf 4.5
2-year analysis with 4.5% risk-free rate
ka portfolio -s AAPL,MSFT,NVDA,TSLA,META,GOOGL,AMZN -tf 3y
7-stock tech portfolio 3-year analysis
ka portfolio -s AAPL,MSFT,GOOGL,TSLA -output json
Portfolio data as JSON for integration
Risk Dashboard
Comprehensive risk dashboard computing: VaR (95% and 99% confidence), CVaR/Expected Shortfall, Ulcer Index, Pain Ratio, Tail Ratio, Skewness, Excess Kurtosis, Downside Deviation, Sortino Ratio, and Calmar Ratio. All computed from raw price history in Python — no reliance on external risk databases.
ka risk -s TSLA
Tesla risk dashboard: VaR, CVaR, Sortino, Calmar, tail metrics
ka risk -s AAPL -tf 3y
Apple 3-year risk analysis with all metrics
ka risk -s SPY
S&P 500 risk baseline: VaR, Ulcer Index, Sharpe metrics
ka risk -s TSLA -rf 0.045
Tesla risk with 4.5% risk-free rate for Sortino/Calmar
ka risk -s NVDA -output json
NVIDIA risk metrics as JSON
►
Research & AI
3
Peer Comparison
Side-by-side comparison of peer companies in the same sector/industry. Shows current price, 1-month and 1-year return, market cap, P/E ratio, and RSI for each peer. Useful for sector rotation and relative value analysis.
ka peers -s TSLA
Tesla peer companies: EV and auto sector comparison
ka peers -s AAPL
Apple peers: consumer tech and hardware companies
News Summary
AI-generated summary of the latest news and sentiment for a symbol. Aggregates recent news articles, extracts key themes, and provides an overall sentiment assessment (bullish/bearish/neutral). Useful for quick fundamental event scanning.
ka news-summary -s TSLA
AI summary of latest Tesla news and sentiment
ka news-summary -s AAPL
Apple recent news: earnings, products, regulatory
ka news-summary -s NVDA
NVIDIA news: AI chip demand and competition updates
ka news-summary -s TSLA -output json
Tesla news summary as JSON
AI Chart Analysis
AI-powered technical chart pattern analysis. Identifies chart patterns (head & shoulders, cup & handle, triangles, flags, double tops/bottoms), evaluates trend structure, key support/resistance, and provides a narrative summary of the current technical setup. Powered by Claude AI.
ka analyze-chart -s TSLA
AI chart analysis: patterns, trend, and S/R for Tesla
ka analyze-chart -s AAPL
Apple chart analysis: current technical setup narrative
ka analyze-chart -s SPY
S&P 500 chart pattern analysis: market structure
ka analyze-chart -s NVDA
NVIDIA AI chart read: trend and pattern detection
ka analyze-chart -s BTCUSD
Bitcoin chart analysis: crypto technical patterns
ka analyze-chart -s TSLA -tf 6m
Tesla chart analysis for last 6 months
ka analyze-chart -s TSLA -output json
Tesla chart analysis as JSON
►
Other
41
List Commands
List all available KlickAnalytics CLI commands with descriptions and sample usage.
ka list-commands
Show all available commands with descriptions
Changelog
View the KlickAnalytics CLI changelog — lists all recent updates, new commands, and improvements.
ka changelog
View all recent CLI updates and new commands
AI Chat
Ask AI any market question — uses GPT to answer with context from KlickAnalytics data. Supports free-form queries about stocks, markets, earnings, and more.
ka ai-chat -q "latest information on TSLA"
Ask about Tesla news
ka ai-chat -m "summarize MSFT latest earnings"
Summarize Microsoft earnings
ka ai-chat -q "compare NVDA vs AMD revenue growth"
Compare two companies
ka ai-chat -q "what happened to AAPL stock today"
Daily recap
Earnings Calendar
Next and previous earnings dates for one or more symbols. Shows days until next earnings, reporting time (BMO/AMC), estimated EPS, and previous quarter results. Flags imminent earnings with warnings.
ka earnings-calendar -s TSLA
Tesla next earnings date and days away
ka earnings-calendar -s AAPL,MSFT,GOOGL,NVDA
Next earnings for 4 stocks
ka earnings-calendar -s TSLA,AAPL,META,AMZN,NVDA,AMD
Earnings calendar for a watchlist
ka earnings-calendar -s SPY
S&P 500 ETF next reporting date
ka earnings-calendar -s NFLX
Netflix earnings date with EPS estimate
Financial Statements
Quarterly and annual financial statements: income statement (revenue, margins, EPS), balance sheet (assets, debt, equity), cash flow (operating CF, FCF, buybacks), and key metrics (P/E, P/B, ROE, debt/equity, dividend yield). Powered by Financial Modeling Prep.
ka financials -s TSLA
Tesla last 8 quarters: all statements
ka financials -s AAPL -period annual
Apple annual financial statements
ka financials -s MSFT -report income
Microsoft income statement only
ka financials -s NVDA -report bs
NVIDIA balance sheet only
ka financials -s GOOGL -report cf
Google cash flow statement only
ka financials -s META -report metrics
Meta key ratios (P/E, ROE, D/E)
ka financials -s TSLA -period Q12025
Tesla Q1 2025 only
ka financials -s AAPL -period Q12024-Q42025
Apple Q1 2024 through Q4 2025
ka financials -s AMZN -period 2023-2025
Amazon annual financials 2023-2025
ka financials -s NVDA -period FY2024
NVIDIA fiscal year 2024
ka financials -s AMD -report income -period Q32024
AMD Q3 2024 income statement
ka financials -s TSLA -report bs -period 2024
Tesla 2024 annual balance sheet
Analyst Estimates
Forward analyst estimates and consensus: EPS and revenue forecasts (low/avg/high), consensus price target with implied upside, and recent analyst rating changes with firm names and grade shifts.
ka estimates -s TSLA
Tesla analyst estimates: forward EPS, revenue, price target
ka estimates -s AAPL
Apple consensus estimates and analyst ratings
ka estimates -s NVDA
NVIDIA forward estimates with analyst grade changes
ka estimates -s MSFT -limit 8
Microsoft 8 quarters of forward estimates
ka estimates -s SPY
S&P 500 ETF analyst consensus
Insider Trading
Recent insider trading activity from SEC Form 4 filings. Shows insider buys, sells, and option exercises with transaction dates, prices, share counts, and dollar values. Includes net buying/selling sentiment summary.
ka insiders -s TSLA
Tesla insider trading: who is buying and selling
ka insiders -s AAPL
Apple insider activity from Form 4 filings
ka insiders -s NVDA -limit 50
NVIDIA last 50 insider transactions
ka insiders -s MSFT
Microsoft insider buys and sells
ka insiders -s META
Meta insider trading with net sentiment
Return Distribution
Return distribution deep-dive with histogram, normality diagnostics, and tail risk analysis. Shows daily/weekly/monthly return histogram, Jarque-Bera normality test, skewness and kurtosis, fat tail analysis (actual vs normal at ±1/2/3 sigma), empirical VaR and CVaR (Expected Shortfall) at 95/99%, return deciles, gain/loss ratio, and rolling skewness/kurtosis trend. Answers: how non-normal is this stock, and is the distribution getting more dangerous?
ka histogram -s TSLA
TSLA daily return distribution with normality test
ka histogram -s NVDA -period 2y
NVDA 2-year return distribution
ka histogram -s SPY -freq weekly
SPY weekly return histogram
ka histogram -s AAPL -freq monthly -period 5y
AAPL 5-year monthly return analysis
ka histogram -s AMD -period 6m
AMD 6-month return distribution
ka histogram -s BTCUSD
Bitcoin return distribution and tail analysis
ka histogram -s MSFT -period 1y
Microsoft 1-year return histogram
ka histogram -s TSLA -freq weekly -period 2y
TSLA weekly returns over 2 years
Chart Image Generator
Composable chart image generator — build any technical chart by stacking overlays on the price axis and indicator panels below. Overlays: sma(), ema(), bb(), kc(), vwap, env(). Panels: vol, rsi(), macd(), stoch(), adx(), obv, atr(), cci(), willr(), mfi(). Each indicator takes inline params like bb(20,2.5) or macd(12,26,9). Special types: compare (multi-symbol), drawdown, histogram. Custom title via -title. Dark and light themes. Returns image/png or base64 JSON.
ka chart -s TSLA
Default candlestick + volume chart
ka chart -s AAPL -type line -tf 1y
Clean line chart with 1-year lookback
ka chart -s SPY -type ohlc -tf 3m -size sm
OHLC bar chart, small size
ka chart -s TSLA -overlay sma(20),sma(50),sma(200) -panel vol -tf 1y
Triple SMA overlay with volume
ka chart -s NVDA -overlay bb(20,2) -panel rsi(14),vol -tf 6m -size lg
BB + RSI + Volume, large
ka chart -s AAPL -overlay ema(12),ema(26) -panel macd(12,26,9) -tf 1y
EMA crossover with MACD
ka chart -s SPY -overlay bb(20,2),sma(200) -panel rsi(14),macd(12,26,9) -tf 1y -title "SPY Full Setup" -size lg
Full technical setup, large
ka chart -s TSLA -overlay kc(20,1.5),bb(20,2) -panel vol -tf 6m -title "TSLA Squeeze"
BB inside KC = squeeze visual
ka chart -s MSFT -panel rsi(9),rsi(14),rsi(21) -tf 1y
Triple RSI comparison
ka chart -s NVDA -overlay sma(50) -panel adx(14),vol -tf 2y -title "NVDA Trend" -size xl
Trend strength, extra large
ka chart -s TSLA -overlay bb(20,3) -panel stoch(14,3),vol -tf 3m -size sm
Wide BB + Stochastic, thumbnail
ka chart -s AAPL -panel rsi(14),macd(12,26,9),adx(14),vol -tf 1y -title "AAPL Indicator Stack"
4-panel stack
ka chart -s NVDA,AMD,TSLA,AAPL -type compare -tf 1y -title "AI vs Tech 2025"
Multi-symbol comparison
ka chart -s SPY -type drawdown -tf 5y -title "SPY Drawdown" -size lg
5-year drawdown chart, large
ka chart -s TSLA -type histogram -tf 3y -title "TSLA Return Dist"
Return distribution histogram
ka chart -s BTCUSD -overlay bb(20,2.5) -panel rsi(14),vol -tf 2y -title "BTC Technical"
Bitcoin with wider BB
ka chart -s META -overlay sma(20),sma(50),sma(200) -panel macd(12,26,9),vol -theme light
Full MA stack, light theme
ka chart -s TSLA -overlay bb(10,1.5),bb(20,2),bb(20,3) -tf 3m -title "TSLA Multi-BB"
Three BB bands
ka chart -s JPM -overlay vwap,sma(20) -panel obv,mfi(14) -tf 6m -title "JPM Flow" -size xl
Flow analysis, extra large
ka chart -s GOOGL -panel stoch(14,3),cci(20) -sd 2024-06-01 -title "GOOGL Momentum" -size md
Momentum panels, medium
Signal Dashboard
Aggregate technical signal scan across your watchlist. For each symbol: RSI zone, MACD signal, MA alignment (bullish/bearish), ADX trend strength, and a net signal score. One table showing which names have the most bullish or bearish confluence right now. Supports up to 15 symbols.
ka signal-dashboard -s TSLA,NVDA,AAPL,MSFT,META
Mag 5 signal scan — who has most bullish confluence?
ka signal-dashboard -s SPY,QQQ,IWM,DIA
Index ETF signal comparison
ka signal-dashboard -s XLE,XLF,XLK,XLV,XLI,XLU
Sector ETF signal sweep
ka signal-dashboard -s NVDA,AMD,AVGO,QCOM,INTC
Semiconductor signal scan
ka signal-dashboard -s JPM,BAC,GS,MS,C
Bank stocks signal dashboard
ka signal-dashboard -s TSLA,RIVN,LCID,NIO,LI
EV maker signal scan
ka signal-dashboard -s AAPL,MSFT,GOOGL,AMZN,META -output json
Big tech signals as JSON
ka signal-dashboard -s BTCUSD,ETHUSD,SOLUSD
Crypto signal dashboard
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.
ka squeeze -s TSLA
Tesla squeeze: current status, momentum bias, historical outcomes
ka squeeze -s NVDA
NVIDIA squeeze detection with post-squeeze return stats
ka squeeze -s AAPL -tf 2y
Apple squeeze analysis over last 2 years
ka squeeze -s SPY -tf 3y
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
ka squeeze -s QQQ -tf 1y
NASDAQ 100 ETF: current squeeze state
ka squeeze -s BTCUSD -tf 2y
Bitcoin squeeze: crypto volatility compression
ka squeeze -s AMD -tf 5y
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
ka sweep -s TSLA
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.
ka entry-exit -s TSLA
Tesla entry/exit zones: stops, targets, Fib, pivots, VWAP
ka entry-exit -s NVDA
NVIDIA actionable levels for trade planning
ka entry-exit -s AAPL -tf 1y
Apple zones with 1-year Fibonacci swing
ka entry-exit -s SPY
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
ka entry-exit -s BTCUSD
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
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.
ka exhaustion -s NVDA
NVIDIA exhaustion scan: is the AI rally running out of steam?
ka exhaustion -s TSLA
Tesla trend exhaustion: divergences, TD Sequential, MA extension
ka exhaustion -s SPY -tf 2y
S&P 500 exhaustion analysis over 2 years
ka exhaustion -s AAPL
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
ka exhaustion -s META
Meta exhaustion: is momentum fading?
ka exhaustion -s IWM -tf 3y
Russell 2000 exhaustion: small-cap cycle top/bottom
Covariance & PCA
Variance-covariance matrix with eigenvalue decomposition (PCA). Returns the full annualized covariance matrix, correlation matrix, principal component explained variance, PC loadings per symbol, diversification ratio, effective number of independent bets, and diversification quality assessment. Foundation for mean-variance optimization and portfolio risk analysis.
ka covariance -s NVDA,AMD,TSLA,AAPL,MSFT
5-stock covariance with PCA decomposition
ka covariance -s SPY,QQQ,IWM,DIA,GLD,TLT
Cross-asset covariance (stocks, gold, bonds)
ka covariance -s XLE,XLF,XLK,XLV,XLI,XLU
Sector covariance structure
ka covariance -s NVDA,AMD,AVGO,QCOM,INTC -period 6m
Semiconductor covariance (6m)
ka covariance -s JPM,BAC,GS,MS,C
Bank stock covariance and diversification
ka covariance -s AAPL,MSFT,GOOGL,AMZN,META -period 2y
Big tech 2-year covariance
ka covariance -s BTCUSD,ETHUSD,SOLUSD,SPY
Crypto vs equity covariance
ka covariance -s TSLA,RIVN,LCID,NIO -period 3m
EV stock co-movement analysis
Performance Heatmap
Multi-symbol performance heatmap across 7 timeframes (1d, 1w, 1m, 3m, 6m, YTD, 1y). Shows returns table with Best/Worst/Avg rows and per-period rankings. Up to 10 symbols.
ka heatmap -s TSLA,NVDA,AAPL,MSFT,META
Mag 5 performance across all timeframes
ka heatmap -s SPY,QQQ,IWM,DIA,GLD,TLT
ETF landscape: equity vs safe haven
ka heatmap -s XLK,XLF,XLE,XLV,XLI,XLC,XLY,XLP,XLU,XLRE
Full sector rotation dashboard
ka heatmap -s NVDA,AMD,AVGO,QCOM,INTC,TSM
Semiconductor sector comparison
Relative Rotation Graph (RRG)
Relative Rotation Graph — classifies symbols into LEADING, WEAKENING, LAGGING, or IMPROVING quadrants based on JdK RS-Ratio and RS-Momentum vs a benchmark. Includes ASCII scatter plot, direction/heading, and relative performance.
ka relative-rotation -s NVDA,AMD,AVGO,QCOM,INTC -benchmark SPY
Semiconductor rotation vs S&P 500
ka relative-rotation -s AAPL,MSFT,GOOGL,AMZN,META,NVDA,TSLA -benchmark QQQ
Mag 7 rotation vs Nasdaq
ka relative-rotation -s XLK,XLF,XLE,XLV,XLI,XLC,XLY,XLP,XLU,XLRE
Sector ETF rotation
ka relative-rotation -s NVDA,AMD,AVGO,QCOM -benchmark XLK
Semis vs tech sector
Basket Performance
Basket performance tracker with equal-weight or custom weights. Shows cumulative NAV, daily attribution by symbol, rolling Sharpe, max drawdown, best/worst contributor, and period sub-returns. Like a mini-fund NAV with full P&L breakdown. Up to 15 symbols.
ka basket -s AAPL,MSFT,GOOGL,TSLA,NVDA
Equal-weight big tech basket performance
ka basket -s AAPL,MSFT,GOOGL,TSLA,NVDA -weights 0.3,0.2,0.2,0.15,0.15
Custom-weighted basket
ka basket -s SPY,QQQ,IWM,DIA
Index ETF basket tracker
ka basket -s XLE,XLF,XLK,XLV -period 6m
Sector basket 6-month performance
ka basket -s NVDA,AMD,AVGO,QCOM,INTC
Semiconductor basket with attribution
ka basket -s TSLA,RIVN,LCID,NIO -period 3m
EV basket 3-month tracker
ka basket -s JPM,BAC,GS,MS,C -weights 0.3,0.25,0.2,0.15,0.1
Weighted bank basket
ka basket -s BTCUSD,ETHUSD,SOLUSD -period 6m
Crypto basket tracker
Multi-Factor Exposure
Multi-factor exposure analysis across a group of symbols. Scores each stock on 5 dimensions: Momentum (3m/6m/12m returns, RSI), Value (P/E, P/B, EV/EBITDA, dividend yield), Quality (ROE, net margin, operating margin, debt/equity), Size (market cap rank), and Volatility (annualized vol, max drawdown). Quintile ranking 1-5 within the group, composite score, factor radar per stock, and group factor summary showing which dimension differentiates the group most.
ka factor -s TSLA,NVDA,AAPL,MSFT,META
Mag 5 multi-factor exposure scan
ka factor -s NVDA,AMD,AVGO,QCOM,INTC
Semiconductor factor comparison
ka factor -s JPM,BAC,GS,MS,C
Bank stocks factor profile
ka factor -s SPY,QQQ,IWM,DIA,GLD
Cross-asset factor analysis
ka factor -s XLE,XLF,XLK,XLV,XLI,XLU
Sector ETF factor tilt
ka factor -s TSLA,RIVN,LCID,NIO,LI
EV stocks factor comparison
ka factor -s AAPL,MSFT,GOOGL,AMZN,META -period 6m
Big tech factors (6-month momentum window)
ka factor -s V,MA,PYPL,SQ,COIN
Fintech factor comparison
Monte Carlo Simulation
Monte Carlo price simulation — generates 1000+ forward paths based on historical return distribution fitted to a scaled t-distribution (captures fat tails). Returns median, 5th/95th percentile cone over time, probability of positive return, probability of hitting a target price, terminal price histogram, and cone snapshots at key days. Useful for options pricing intuition, position sizing, and risk scenario planning.
ka montecarlo -s TSLA -horizon 60
60-day forward simulation for TSLA
ka montecarlo -s NVDA -horizon 30 -target 200
NVDA 30-day sim with $200 target probability
ka montecarlo -s AAPL -horizon 120
AAPL 6-month (120 trading day) simulation
ka montecarlo -s SPY -horizon 252
SPY full-year forward simulation
ka montecarlo -s MSFT -horizon 60 -n_sims 5000
High-precision sim with 5000 paths
ka montecarlo -s AMD -horizon 45 -target 150
AMD probability of reaching $150 in 45 days
ka montecarlo -s TSLA -horizon 20 -lookback 252
Short-term sim using only last year of data
ka montecarlo -s BTCUSD -horizon 90
Bitcoin 90-day Monte Carlo cone
Event Study
Multi-symbol event study inspired by Kensho-style analytics. Define conditions on one or more trigger symbols (e.g. TSLA|C>avg(C,50)) and the engine finds every date where ALL conditions fire simultaneously. Then it measures how a basket of target symbols performs around those events: buy N days before, sell M days after. Returns event count, year/month occurrence matrix, average returns, win rate, profit factor, median return, and best/worst trades per symbol. Historical trades table is available on request with -trades flag.
ka event-study -cond "TSLA
C>avg(C,50)" -trade "-2,2" -s TSLA|TSLA above 50-day MA: buy 2d before, sell 2d after
ka event-study -cond "AAPL
C>avg(C,20),AAPL|V>2*avg(V,20)" -trade "-1,3" -tf 5y -s AAPL,MSFT,GOOGL|AAPL breakout with volume over last 5 years: test across big tech
ka event-study -cond "SPY
(C-O)/O*100>2" -trade "0,5" -tf 10y -s TSLA,AAPL,NVDA|SPY gaps up 2%+ over last 10 years: how do tech stocks react
ka event-study -cond "TSLA
C<avg(C,200)" -trade "-2,10" -tf 3y -s TSLA|TSLA below 200-day MA last 3 years: mean reversion test
ka event-study -cond "SPY
C<avg(C,50),VIX|C>30" -trade "0,5" -sd 2015-01-01 -ed 2025-12-31 -s SPY,QQQ,IWM|SPY below 50-day MA + VIX>30 from 2015 to 2025
ka event-study -cond "AAPL
(H-L)/C*100>3" -trade "-1,1" -trades -tf 2y -s AAPL|AAPL wide-range days last 2 years: show all historical trades
ka event-study -cond "IBM
avg(C,20)>avg(C,50),MSFT|avg(C,20)>avg(C,50)" -trade "-3,5" -s IBM,MSFT,AAPL|IBM+MSFT golden cross together: basket response
ka event-study -cond "TSLA
V>3*avg(V,20)" -trade "0,3" -sd 2022-01-01 -s TSLA,RIVN,NIO|TSLA volume spike since 2022: does it pull EV peers
ka event-study -cond "GLD
C>avg(C,50),TLT|C>avg(C,50)" -trade "-1,5" -tf 5y -s GLD,TLT,SPY|Gold+Bonds both strong last 5y: flight to safety study
ka event-study -cond "NVDA
C>avg(C,20)" -trade "-2,5" -sd 2020-01-01 -ed 2025-03-26 -s NVDA,AMD,TSM,AVGO|NVDA above 20-day MA: semiconductor basket 2020-2025
Tail Risk Analysis
Deep tail risk analytics for 1-10 symbols. Computes Value-at-Risk (95/99) using historical, normal, and Cornish-Fisher methods. Includes CVaR/Expected Shortfall, skewness, excess kurtosis, tail ratio, multi-horizon risk (1d/5d/20d), drawdown-at-risk, loss frequency distribution, and the 5 worst historical days, weeks, and months. Shows dollar VaR on a $10k position. Multi-symbol mode adds a comparison table. What's the real downside beyond standard deviation?
ka tail-risk -s TSLA
Tesla tail risk: VaR, CVaR, skewness, kurtosis, worst days
ka tail-risk -s TSLA,NVDA,SPY
Compare tail risk across Tesla, NVIDIA, and S&P 500
ka tail-risk -s AAPL,MSFT,GOOGL,META,AMZN -tf 3y
Big Tech tail risk over last 3 years
ka tail-risk -s SPY -tf 5y
S&P 500 5-year tail risk: crash history and VaR
ka tail-risk -s BTCUSD -tf 2y
Bitcoin tail risk: extreme crypto downside
ka tail-risk -s TSLA -sd 2022-01-01 -ed 2023-12-31
Tesla tail risk during 2022-2023 bear market
ka tail-risk -s QQQ,IWM,DIA -tf 1y
Major index ETFs: which has the fattest tails?
ka tail-risk -s NVDA,AMD,TSM,AVGO -tf 3y
Semiconductor tail risk comparison
ka tail-risk -s GLD,TLT,SPY -tf 5y
Safe havens vs equity: tail risk comparison
ka tail-risk -s TSLA,NVDA,SPY -tf 10y
10-year deep history tail risk analysis
Signal Decay Analysis
Signal decay analysis — after RSI, MACD, MA-cross, Bollinger Band, volume spike, or gap signals fire, what are the forward returns at 1d/3d/5d/10d/20d horizons? Shows hit count, average return, median, win rate, profit factor, t-statistic, and a verdict on whether the signal has statistically significant alpha or is noise. Supports individual signals (rsi, macd, bb, ma, vol, gap) or all at once for comparison. 11 built-in signal types with automatic detection.
ka decay -s TSLA -signal rsi
Tesla RSI oversold/overbought signal decay
ka decay -s TSLA -signal all
Tesla: test ALL 11 signals and compare alpha
ka decay -s NVDA -signal macd -tf 3y
NVIDIA MACD cross decay over 3 years
ka decay -s AAPL -signal bb
Apple Bollinger Band touch signal decay
ka decay -s SPY -signal ma -tf 10y
S&P 500 golden/death cross over 10 years
ka decay -s TSLA -signal vol -tf 5y
Tesla volume spike signal: does it predict moves?
ka decay -s MSFT -signal gap
Microsoft gap up/down forward return analysis
ka decay -s QQQ -signal rsi_oversold -tf 5y
QQQ RSI oversold only: mean reversion alpha?
ka decay -s TSLA -signal all -sd 2022-01-01 -ed 2024-12-31
Tesla all signals 2022-2024
ka decay -s AMD -signal macd_bull -tf 3y
AMD MACD bullish cross only: is there edge?
HMM Regime Detection
Hidden Markov Model regime detection — fits a 2-3 state Gaussian HMM to daily returns using the Baum-Welch (EM) algorithm. Identifies bull/bear/sideways regimes probabilistically. Shows current regime with state probabilities, transition probability matrix with expected duration per regime, per-regime statistics (ann return, volatility, % positive days, best/worst day), emission parameters, and full regime history timeline. More rigorous than rule-based detection.
ka regime-hmm -s SPY -states 3
S&P 500 3-state HMM: bull/sideways/bear regimes
ka regime-hmm -s SPY -states 2
S&P 500 2-state HMM: bull/bear only
ka regime-hmm -s TSLA -tf 3y
Tesla regime detection over last 3 years
ka regime-hmm -s NVDA -states 3 -tf 5y
NVIDIA 3-state regime: 5-year lookback
ka regime-hmm -s QQQ -states 3
NASDAQ 100 current regime probability
ka regime-hmm -s BTCUSD -states 2 -tf 3y
Bitcoin 2-state regime: bull vs bear
ka regime-hmm -s AAPL -sd 2020-01-01 -ed 2025-03-28
Apple regime history 2020-2025
ka regime-hmm -s GLD -states 3 -tf 10y
Gold 10-year regime analysis
ka regime-hmm -s IWM -states 3 -tf 5y
Russell 2000 regime: small-cap cycles
ka regime-hmm -s TLT -states 2 -tf 5y
Treasury bonds: rate regime detection
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.
ka gap-fade -s TSLA
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?
ka gap-fade -s SPY
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
Composite Quant Ranking
Composite quantitative ranking for 2-20 symbols across 6 dimensions: Momentum (3m/6m/12m returns, 25%), Quality (Sharpe/Sortino, 20%), Trend (ADX/MA alignment, 20%), Risk (drawdown/volatility, 15%), Mean-Reversion (z-score/52w distance, 10%), Volume (rel volume/OBV slope, 10%). Each dimension scored 0-100 as percentile within the peer group. Leaderboard with composite score, dimension leaders, detailed metrics, and MA alignment table.
ka rank -s NVDA,AMD,TSLA,AAPL,MSFT,META,GOOGL,AMZN
Mag 8 composite ranking across all dimensions
ka rank -s SPY,QQQ,IWM,DIA,GLD,TLT
Major ETF ranking: which asset class leads?
ka rank -s NVDA,AMD,TSM,AVGO,INTC -tf 2y
Semiconductor ranking over 2 years
ka rank -s TSLA,RIVN,NIO,LCID
EV sector: who ranks highest overall?
ka rank -s JPM,BAC,WFC,GS,MS,C -tf 1y
Bank sector composite ranking
ka rank -s XOM,CVX,COP,SLB,EOG
Energy sector quantitative ranking
ka rank -s AAPL,MSFT,GOOGL,AMZN -tf 3y
Big 4 tech 3-year ranking
ka rank -s BTCUSD,ETHUSD,SPY,GLD -tf 2y
Crypto vs traditional assets ranking
ka rank -s NVDA,AMD,TSLA,AAPL -sd 2024-01-01
Top tech ranking since Jan 2024
ka rank -s META,NFLX,DIS,CMCSA,PARA -tf 1y
Media/streaming sector ranking
Price Ratio Spread
Price ratio tracking between 2-3 symbols. Shows ratio mean, current z-score, Bollinger bands on the ratio, and reversion signals. Simpler relative-value monitoring compared to pairs (which focuses on cointegration/hedge ratios). Great for sector pairs like XLE/XLF or stock pairs like TSLA/NVDA.
ka spread -s TSLA,NVDA
TSLA/NVDA price ratio with z-score and Bollinger bands
ka spread -s XLE,XLF
Energy vs Financials sector spread
ka spread -s AAPL,MSFT
Big tech relative-value monitor
ka spread -s NVDA,AMD
GPU rivals price ratio tracking
ka spread -s TSLA,NVDA,AMD
TSLA ratio vs both NVDA and AMD
ka spread -s SPY,QQQ
Large-cap vs tech-heavy index spread
ka spread -s TSLA,NVDA -period 6m
6-month ratio analysis
ka spread -s TSLA,NVDA -bb_window 30 -bb_mult 2.5
Custom Bollinger settings
Strategy Backtester
Backtests a trading strategy defined by entry and exit conditions written in the OHLCV expression language. Supports bar offsets (C[-1]), rolling functions (avg, ema, rsi, atr, std, zscore), cross-asset indicators (macd, bbupper/bbmid/bblower, adx, diplus/diminus, stochk/stochd, cci, willr, obv, roc), and logical operators (and, or). Returns performance stats: total trades, win rate, gross profit/loss, net PnL, profit factor, avg win/loss, best/worst trade, avg bars held, max drawdown. Add -trades 1 to show full historical trade log.
ka backtest -s AMZN -entry "H[-1] < H[-2] AND L[-1] > L[-2] AND C < L[-1]" -exit "C > avg(C,5)"
—
ka backtest -s TSLA -entry "rsi(C,14) < 30" -exit "rsi(C,14) > 50"
—
ka backtest -s AAPL -entry "crossup(ema(C,20),ema(C,50))" -exit "crossdown(ema(C,20),ema(C,50))"
—
ka backtest -s SPY -entry "C > bbupper(C,20)" -exit "C < bbmid(C,20)"
—
ka backtest -s NVDA -entry "rsi(C,14) < 30 AND C < avg(C,20)" -exit "rsi(C,14) > 60" -sd 2022-01-01 -ed 2026-01-01
—
ka backtest -s TSLA -entry "H[-1] < H[-2] AND C < L[-1]" -exit "C > avg(C,5)" -trades 1
—
Intraday OHLCV + Indicators
Fetches live intraday OHLCV bars for a symbol from Financial Modeling Prep and computes intraday indicators: EMA(9), EMA(20), EMA(50), RSI(14), and MACD(12,26,9). Returns a session summary (session open/high/low, return%, range%), the latest bar, indicator values, trend/RSI/MACD signal labels (BULLISH/BEARISH/MIXED/OVERBOUGHT/OVERSOLD), and a recent 15-bar OHLCV table. Timeframes: 1min, 5min (default), 15min, 30min, 1hour, 4hour. Bar count is capped per timeframe (1min max 780, 5min max 780, 15min max 520, 30min max 520, 1hour max 400, 4hour max 240).
ka intraday -s TSLA
TSLA intraday 5-min bars: EMA, RSI, MACD + session summary
ka intraday -s NVDA -tf 1min
NVIDIA 1-min bars — first-hour momentum read
ka intraday -s AAPL -tf 15min -bars 260
Apple 15-min bars, ~10 trading days
ka intraday -s SPY -tf 1hour
SPY hourly: trend direction and indicator alignment
ka intraday -s MSFT -tf 4hour -bars 120
Microsoft 4-hour bars: medium-term intraday structure
ka intraday -s QQQ -tf 30min
QQQ 30-min bars: regime check on intraday timeframe
ka intraday -s META -tf 5min -bars 78
Meta 5-min bars limited to last trading day
VWAP + Standard Deviation Bands
Computes VWAP (Volume Weighted Average Price) anchored to the first bar loaded, with ±1σ and ±2σ standard deviation bands. Returns: VWAP value, upper/lower band levels, current price deviation (absolute and %), position label (ABOVE_VWAP_2SD / ABOVE_VWAP_1SD / ABOVE_VWAP / AT_VWAP / BELOW_VWAP / BELOW_VWAP_1SD / BELOW_VWAP_2SD), VWAP slope (RISING/FLAT/FALLING over last N bars), overall bias label, and a recent 10-bar table with per-bar VWAP and deviation %. Timeframes: 1min, 5min (default), 15min, 30min, 1hour, 4hour.
ka intraday-vwap -s TSLA
TSLA 5-min VWAP: deviation, bands, slope, position label
ka intraday-vwap -s NVDA -tf 1min
NVIDIA 1-min VWAP — tight intraday fair value
ka intraday-vwap -s AAPL -tf 15min
Apple 15-min VWAP for medium-term intraday trend
ka intraday-vwap -s SPY -tf 5min -bars 78
SPY VWAP anchored to today open (78 bars)
ka intraday-vwap -s QQQ -tf 1hour
QQQ hourly VWAP: swing-level fair value
ka intraday-vwap -s MSFT -tf 30min
Microsoft 30-min VWAP with band position
Opening Range Breakout (ORB)
Computes the Opening Range (ORH/ORL) from the first N minutes of the most recent trading session. Reports breakout status (LONG_BREAKOUT / SHORT_BREAKOUT / NO_BREAKOUT / ORB_FORMING), extension amount and %, extension targets at 1× and 2× the range width, daily ATR comparison with range quality label (TIGHT/NORMAL/WIDE/VERY_WIDE), and session progress. Period can be 5–120 min (default 30). Timeframes: 1min (default), 5min, 15min, 30min, 1hour, 4hour.
ka intraday-opening-range -s TSLA
TSLA 30-min ORB on 1-min bars: breakout status + targets
ka intraday-opening-range -s NVDA -period 15
NVIDIA 15-min ORB
ka intraday-opening-range -s AAPL -tf 5min -period 30
Apple 30-min ORB on 5-min bars
ka intraday-opening-range -s SPY -tf 1min -period 60
SPY 60-min ORB: first hour range
ka intraday-opening-range -s QQQ -period 5
QQQ 5-min ORB: first candle structure
ka intraday-opening-range -s MSFT -period 30
Microsoft 30-min ORB with ATR quality filter
intraday-relative-volume
Intraday Relative Volume (RVOL) — today's volume vs historical average at the same time of day across prior sessions. Reports per-bar RVOL, cumulative RVOL, projected daily volume, volume trend (ACCELERATING/DECELERATING/STEADY), and RVOL classification.
ka intraday-relative-volume -s TSLA
—
ka intraday-relative-volume -s NVDA -tf 1min
—
ka intraday-relative-volume -s AAPL -tf 15min
—
ka intraday-relative-volume -s SPY -tf 5min
—
ka intraday-relative-volume -s QQQ -tf 30min
—
intraday-levels
Intraday key price levels — VWAP ± 1σ/2σ bands, session high/low, previous session close/high/low, swing pivots, and volume nodes. All levels ranked by proximity to current price and labeled SUPPORT or RESISTANCE.
ka intraday-levels -s TSLA
—
ka intraday-levels -s NVDA -tf 1min
—
ka intraday-levels -s AAPL -tf 15min -swing_lb 3
—
ka intraday-levels -s SPY -tf 5min -n_levels 15
—
ka intraday-levels -s QQQ -tf 30min
—
intraday-regime
Intraday market regime detection — classifies current price structure as TRENDING_UP, TRENDING_DOWN, RANGING, or MEAN_REVERTING with a HIGH/NORMAL/LOW volatility overlay. Uses ADX+DI±, R² (trend linearity), ATR ratio, VWAP cross count, and HH/HL bar consistency.
ka intraday-regime -s TSLA
—
ka intraday-regime -s NVDA -tf 1min
—
ka intraday-regime -s AAPL -tf 15min
—
ka intraday-regime -s SPY -tf 5min
—
ka intraday-regime -s QQQ -tf 30min -adx_period 20
—
intraday-volume-profile
Intraday volume-by-price profile — POC (Point of Control), Value Area High/Low, High/Low Volume Nodes, balance/skew classification, and ASCII histogram. Shows where the market accepted and rejected value within the current session.
ka intraday-volume-profile -s TSLA
—
ka intraday-volume-profile -s NVDA -tf 1min
—
ka intraday-volume-profile -s AAPL -tf 15min
—
ka intraday-volume-profile -s SPY -tf 5min -n_bins 50
—
ka intraday-volume-profile -s QQQ -tf 30min
—
intraday-premarket
Premarket gap analysis — classifies the overnight gap (FULL/PARTIAL UP/DOWN, NO_GAP), measures gap vs daily ATR, shows previous session reference levels (close/high/low/VWAP), extension targets, and strategy implications per gap type.
ka intraday-premarket -s TSLA
—
ka intraday-premarket -s NVDA
—
ka intraday-premarket -s AAPL -tf 1min
—
ka intraday-premarket -s SPY
—
ka intraday-premarket -s QQQ
—
intraday-screener
Intraday screener — screen multiple symbols on live intraday metrics (change%, RVOL, RSI, ADX, VWAP deviation, gap%). Concurrent API calls for speed. Supports filter expressions and sortable leaderboard output. Up to 50 symbols per request.
ka intraday-screener -s TSLA,NVDA,AAPL,MSFT,META,AMZN,AMD,NFLX,GOOGL,SPY
—
ka intraday-screener -s TSLA,NVDA,AAPL,MSFT,META -filter "change_pct > 1 AND rvol > 1.5"
—
ka intraday-screener -s TSLA,NVDA,AAPL,MSFT,META -filter "adx > 25" -sort adx -sortorder desc
—
ka intraday-screener -s TSLA,NVDA,AAPL,MSFT,META -filter "vwap_pos = ABOVE AND rsi < 70"
—
ka intraday-screener -s SPY,QQQ,IWM,DIA,GLD,TLT -tf 15min -sort range_pct
—
Cross-Sectional Dispersion
Cross-sectional dispersion analysis — measures how spread out returns are within a basket of symbols. High dispersion = stock-picking market. Low dispersion = macro-driven, trade the index. Shows rolling dispersion, percentile rank, regime, avg pairwise correlation, per-symbol outlier analysis.
ka dispersion -s TSLA,NVDA,AAPL,MSFT,META,AMZN,GOOGL
Mag 7 dispersion
ka dispersion -s XLK,XLF,XLE,XLV,XLI,XLC,XLY,XLP,XLU,XLRE
Sector ETF dispersion
ka dispersion -s NVDA,AMD,AVGO,QCOM,INTC -period 6m
Semiconductor dispersion 6m
ka dispersion -s TSLA,NVDA,AAPL,MSFT,META -window 10
Short-window dispersion
Lead-Lag Cross-Correlation
Cross-correlation at various lags (1-5 days) between all pairs in a basket. Finds predictive relationships: does AMD move 1 day before NVDA? Does SPY lead the group? Returns lag matrix, correlation at best lag, predictive pairs ranked by improvement, and leader/follower rankings.
ka lead-lag -s NVDA,AMD,TSLA,AAPL,SPY
GPU, auto, tech vs market lead-lag
ka lead-lag -s XOM,CVX,COP,USO,XLE
Oil stocks vs commodity ETF
ka lead-lag -s JPM,BAC,GS,XLF,SPY
Banks vs sector vs market
ka lead-lag -s SPY,QQQ,IWM,DIA -period 6m
Index cross-leads (6 month)
ka lead-lag -s NVDA,AMD,AVGO,QCOM,INTC -max_lag 3
Semiconductor lead-lag (3 day max)
Agent Analysis
Activate a specialized financial agent to analyze a symbol. Each agent has a unique persona, expertise, analytical lens, and output format. The agent auto-runs its priority commands, feeds the data to an LLM, and delivers structured analysis through its specialized lens. Run without arguments to see available agents.
ka agent
List all available agents
ka agent swing-trader-technical -s TSLA
Analyze TSLA as a swing trader
ka agent swing-trader-technical -s NVDA
NVDA swing trade setup analysis
ka agent swing-trader-technical -s SPY
SPY swing trade opportunity check
ka agent swing-trader-technical -s AAPL
AAPL technical swing analysis
Agent Chat
Free-form chat with a specialized financial agent. Ask any question and the agent responds through its unique expertise lens. Automatically detects symbols in your message and runs relevant analysis commands. Provide -agent to select the persona.
ka agent-chat -agent swing-trader-technical -q "Is TSLA a good swing trade right now?"
Chat with swing trader about TSLA
ka agent-chat -agent swing-trader-technical -q "What setups do you see in NVDA?" -s NVDA
Ask swing trader about NVDA setups
ka agent-chat -agent swing-trader-technical -q "Should I buy this dip in AAPL?"
Ask about AAPL dip buying
ka agent-chat -agent swing-trader-technical -q "Where do I put my stop on TSLA?" -s TSLA
Ask about stop placement
No commands match the selected filters.