agentleFS
krzysukrzysu/market-skills/skills/market-squeeze/SKILL.md

market-squeeze

Skill3 starsChanged 4 months agoMITView on GitHub

Detects Bollinger Band / Keltner Channel squeeze with momentum direction. Use for pre-breakout compression signals and breakout confirmation. Supports any yfinance ticker.

The file

Files
SKILL.md

market-squeeze

Squeeze momentum indicator: when Bollinger Bands are inside Keltner Channels, volatility is compressing — a breakout is likely. The momentum histogram shows which direction.

Based on John Carter's TTM Squeeze (LazyBear variant).

When NOT to use

  • This is a single timing overlay, not a trade idea — use it on top of a trend read (market-ema, market-trend-quality), never as a standalone entry.
  • A squeeze being "ON" only says compression; it does not say direction. Wait for the release (squeeze_on=False) and confirm with volume (market-volume).
  • "FADING" signals after a release may mean the breakout is exhausting — do not chase; require trend confirmation.

Quick Start

uv run skills/market-squeeze/scripts/run.py AAPL --json

Flags

FlagDefaultNotes
TICKER (positional)—Required. Supports provider:ticker (e.g. hl:LIT, yf:AAPL).
--jsonhumanEmit JSON to stdout.
--source=PROVIDERauto-detectForce a data provider (see README).
--interval=INTERVAL1d1m/2m/5m/15m/30m/1h/2h/4h/8h/12h/1d/3d/1wk/1M.
--period=PERIOD1y1d/5d/1mo/3mo/6mo/1y/2y/5y/10y/ytd/max.

Both timeframe flags are validated — bad values exit 2 with a friendly error. Defaults give daily candles over 1y (~250 bars), enough for BB/KC squeeze stability. For intraday (--interval=1h), bump --period to 6mo or 1y; yfinance caps hourly at ~2y and anything sub-hour at ~60d.

What it returns

  • squeeze_on: whether BB bands are inside KC bands (compression)
  • momentum: oscillator value — positive = bullish, negative = bearish
  • direction: increasing or decreasing momentum
  • signal: BULLISH, BEARISH, BULLISH FADING, BEARISH FADING, FLAT

Signal Interpretation

SqueezeMomentumSignalMeaning
ONrisingSqueeze buildingCoiling for upside breakout
ONfallingSqueeze buildingCoiling for downside breakout
OFFpositiveBULLISHBreakout in progress (up)
OFFnegativeBEARISHBreakout in progress (down)
OFFfadingRespective FADINGMomentum losing steam

Edge Cases

  • "FADING" signals after a squeeze release may indicate the breakout is exhausting.
  • Squeeze fires are strongest when confirmed by volume — use with OBV analysis.
  • Requires 50+ days of data for reliable BB/KC calculation.
  • Best used as a timing overlay on trend direction from market-ema or market-trend-quality.

Output envelope (AXI)

--json output follows the canonical AXI envelope — {data, count, errors, help[]}. Default schema is the per-skill minimal fields (3-6 essentials); pass --fields=<csv> to project or --full for the full payload. count is the item count, help[] is contextual next-step command templates. Lib.py return shapes (L1Result / L2Result / L3Result / L3Idea / RegimeSignal) are unchanged — the envelope wraps them at the scripts/run.py boundary.

Home view (no-arg mode)

No-arg mode prints the home view from $XDG_DATA_HOME/market-skills/<skill>_last.json (last successful run). Errors are not cached.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.