← ClaudeAtlas

macro-regimelisted

Structural (6–24 month) macro regime for Indian equities from monthly cross-asset lines: equal weight or smallcap vs NIFTY (broadening), size, NIFTY Bank leadership, cyclicals vs defensives, NIFTY vs gold in rupees, India 10-year G-sec and the yield curve (10y minus T-bill or repo), USD/INR, Brent, the US 10-year and India VIX. Each line gets a 6- vs 12-month crossover state and its last turn. Output: a regime label (Broadening, Narrow, Inflationary squeeze, Easing, Risk-off, Transitional) with evidence, an "N of M turned" count, tilts and what would flip it. macro.py works offline from CSVs. Use when the user asks: "what is the macro regime", "is the market broadening or narrowing", "are smallcaps leading", "is the yield curve inverted in India", "how do crude and the rupee affect the market", "is RBI easing helping stocks", "equity vs gold", "should I tilt to defensives this year", "big-picture positioning", or before a quarterly allocation review.
Shubhamkumartrichy/claude-trading-skills-india · ★ 62 · Code & Development · score 84
Install: claude install-skill Shubhamkumartrichy/claude-trading-skills-india
# Macro Regime (India) **Not the same as `market-regime`.** That skill reads NIFTY's daily tape (distribution days, follow-through) over a horizon of weeks and sets the exposure ceiling. This one works on month-end data over 6–24 months. It asks which kind of market India is in (who leads, and whether crude, the rupee and rates are helping or hurting) and changes only a few times per cycle. Use it for the quarterly allocation tilt, then let the faster skills time entries inside it. ## Commands ```bash python3 scripts/macro.py series # file names, tickers, sources python3 scripts/macro.py status --csv-dir macro_data/ # label, evidence, table, tilts python3 scripts/macro.py status --csv-dir yields/ --fetch --json # CSVs for yields, Yahoo for the rest python3 scripts/macro.py history --csv-dir macro_data/ --months 36 python3 scripts/macro.py component curve --csv-dir macro_data/ # one gauge month by month ``` Flags: `--as-of YYYY-MM[-DD]` (replay), `--closed-months` (drop the month in progress), `--fast 6`, `--slow 12`, `--recent 3` (turn window), `--band-pct 0.25` / `--band-bp 5` (dead band), `--ticker KEY=TICKER`, `--period 10y`, `--json` (strict JSON). Loader helpers are shared with `../technical-analysis/scripts/ta.py`. Errors print one `error:` line and exit 2. ## Inputs: one CSV per series, any subset A date column plus a close/price/yield column is enough. Daily, weekly or monthly rows all work (the last value of