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.
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.
Cross-company view for a person who belongs to several companies (byrå with clients, koncern, several own bolag). Use when the user says "mina klienter", "alla bolag", "all my companies", "vilka klienter", "portfölj", "kör för alla", asks…
Use this skill after important user-approved decisions, preference changes, project conventions, or long work sessions that may deserve durable context. In a source checkout, replace `lnk` with `python3 link.py`. Do not silently save durabl
Use when implementing a project with a large, comprehensive, or ambiguous spec — extracts requirements with proof obligations, defines a walking skeleton with its first journey scenario, then loops through audited sprints that continuously build a…
skills/iterative-development/SKILL.md
Share a useful AI product
Tell people what it does. Our editors review each submission before publishing.
No comments yet