Skip to content

reddygopalkrishna/trading-skills / skills/trading-market

trading-market

Verified

Classify the current market regime for any index, ETF or crypto benchmark - risk-on uptrend, selective uptrend, choppy, correction or risk-off - from trend (50/200-SMA), momentum, volatility percentile, drawdown and optional breadth across a watchlist, with a suggested exposure level. Use when the user asks "how is the market", "should I be buying now", "is it risk-on", wants market context before trading, or needs to scale position sizes to conditions.

FileKindSize
SKILL.mdskill md2.1 KB
assets/watchlists/crypto-majors.txtmarkdown112 B
assets/watchlists/global-index-etfs.txtmarkdown106 B
assets/watchlists/global-large-caps.txtmarkdown306 B
assets/watchlists/india-large-caps.txtmarkdown291 B
assets/watchlists/us-mega-caps.txtmarkdown173 B
assets/watchlists/world-indices.txtmarkdown104 B
scripts/_vendor/tradekit/__init__.pyscript516 B
scripts/_vendor/tradekit/alerts.pyscript7.5 KB
scripts/_vendor/tradekit/analysis.pyscript10.3 KB
scripts/_vendor/tradekit/backtest.pyscript17.8 KB
scripts/_vendor/tradekit/brokers/__init__.pyscript1022 B
scripts/_vendor/tradekit/brokers/_rest.pyscript2.7 KB
scripts/_vendor/tradekit/brokers/base.pyscript3.5 KB
scripts/_vendor/tradekit/brokers/dhan.pyscript6.8 KB
scripts/_vendor/tradekit/brokers/fyers.pyscript7.1 KB
scripts/_vendor/tradekit/brokers/groww.pyscript7.7 KB
scripts/_vendor/tradekit/brokers/kite.pyscript14.5 KB
scripts/_vendor/tradekit/brokers/paper.pyscript12.7 KB
scripts/_vendor/tradekit/brokers/upstox.pyscript7.8 KB
scripts/_vendor/tradekit/cli.pyscript2.4 KB
scripts/_vendor/tradekit/config.pyscript6.0 KB
scripts/_vendor/tradekit/data.pyscript18.5 KB
scripts/_vendor/tradekit/disclosures.pyscript17.4 KB
scripts/_vendor/tradekit/expr.pyscript19.0 KB
scripts/_vendor/tradekit/feeds.pyscript9.4 KB
scripts/_vendor/tradekit/frame.pyscript8.9 KB
scripts/_vendor/tradekit/fundamentals.pyscript6.1 KB
scripts/_vendor/tradekit/gate.pyscript8.1 KB
scripts/_vendor/tradekit/http.pyscript4.3 KB
scripts/_vendor/tradekit/indicators.pyscript13.1 KB
scripts/_vendor/tradekit/journal.pyscript11.1 KB
scripts/_vendor/tradekit/metrics.pyscript6.2 KB
scripts/_vendor/tradekit/montecarlo.pyscript7.8 KB
scripts/_vendor/tradekit/options.pyscript24.4 KB
scripts/_vendor/tradekit/patterns.pyscript12.9 KB
scripts/_vendor/tradekit/report.pyscript8.4 KB
scripts/_vendor/tradekit/risk.pyscript4.7 KB
scripts/_vendor/tradekit/sec.pyscript12.0 KB
scripts/_vendor/tradekit/session.pyscript9.4 KB
scripts/regime.pyscript3.2 KB
---
name: trading-market
description: Classify the current market regime for any index, ETF or crypto benchmark - risk-on uptrend, selective uptrend, choppy, correction or risk-off - from trend (50/200-SMA), momentum, volatility percentile, drawdown and optional breadth across a watchlist, with a suggested exposure level. Use when the user asks "how is the market", "should I be buying now", "is it risk-on", wants market context before trading, or needs to scale position sizes to conditions.
license: MIT
metadata:
  author: reddygopalkrishna
  version: "0.2.0"
  pack: trading-skills
---

# Market Regime (`trading-market`)

Most individual setups fail when the overall market is falling. Check the tide before the waves.

```bash
python3 scripts/regime.py                                   # config benchmark
python3 scripts/regime.py --index ^GSPC
python3 scripts/regime.py --index ^GSPC --universe assets/watchlists/us-mega-caps.txt
python3 scripts/regime.py --index ^GSPC ^FTSE ^N225 ^NSEI BTC-USD   # cross-market dashboard
```

If no benchmark is configured, ask the user which market they trade and suggest the obvious index
(`^GSPC`/`SPY`, `^NDX`, `^FTSE`, `^GDAXI`, `^N225`, `^NSEI`, `^HSI`, `^AXJO`, `BTC-USD`), then offer to
save it with `trading-setup`: `setup.py set account.benchmark ^GSPC`.

## Model

Points from: price vs 200-SMA (+-2), 200-SMA slope, price vs 50-SMA, 50 vs 200, price vs 21-EMA,
3-month momentum, and (with `--universe`) % of stocks above 50/200-SMA. High volatility
(top 20% of the year) cuts exposure one notch.

| score | regime | exposure |
|---|---|---|
| >= 6 (normal vol) | risk-on uptrend | 100% |
| 4-5 | uptrend, selective / volatile | 75% |
| 0-3 | pullback / choppy | 50% |
| -1..-4 | correction | 25% |
| <= -5 | downtrend / risk-off | 0% |

## Using the result

- Multiply the user's normal risk per trade by exposure% when sizing (trading-plan `--risk-pct`).
- In choppy/correction regimes favour fewer trades, quicker profits, tighter stops.
- It is a rules-based description of current conditions, not a forecast of where the market goes next.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall