Skill / SKILL.md

Pair Trading

Shubhamkumartrichy/claude-trading-skills-india

Statistical pair trading (market-neutral long/short) for NSE stocks. pairs.py tests whether two stocks are cointegrated (Engle-Granger with an ADF on residuals, judged against MacKinnon's cointegration critical values), estimates the hedge ratio, half-life and current spread z-score, screens every same-sector pair with a Bonferroni caution, lists in-sample z-score trades with a hit rate, and plans Indian execution: stock futures in whole lots, residual hedge mismatch, margin, charges, last-Tuesday rollover, F&O ban and lot-size revisions. Stdlib only; offline CSVs. Use when the user asks: "is HDFCBANK/ICICIBANK a good pair", "are TCS and INFY cointegrated", "find pairs in the bank/IT sector", "what is the z-score of the BPCL-HPCL spread", "pair trade entry and exit", "hedge ratio between two stocks", "how many lots for a pair trade", "how do I short the other leg in India", or wants a market-neutral or relative-value trade.
2 views 80 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Statistical pair trading (market-neutral long/short) for NSE stocks. pairs.py tests whether two stocks are cointegrated (Engle-Granger with an ADF on residuals, judged against MacKinnon's cointegration critical values), estimates the hedge ratio, half-life and current spread z-score, screens every same-sector pair with a Bonferroni caution, lists in-sample z-score trades with a hit rate, and plans Indian execution: stock futures in whole lots, residual hedge mismatch, margin, charges, last-Tuesday rollover, F&O ban and lot-size revisions. Stdlib only; offline CSVs. Use when the user asks: "is HDFCBANK/ICICIBANK a good pair", "are TCS and INFY cointegrated", "find pairs in the bank/IT sector", "what is the z-score of the BPCL-HPCL spread", "pair trade entry and exit", "hedge ratio between two stocks", "how many lots for a pair trade", "how do I short the other leg in India", or wants a market-neutral or relative-value trade.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/Shubhamkumartrichy/claude-trading-skills-india' skill-source

Use the complete skill-source/skills/pair-trading directory with your client’s skill installer.

Source directory skills/pair-trading

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
5eba4e3aae81d3c5e718299e60f92db045c2385633716247508962ce69ecc25c
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills