CNI Research Note SEBI Reg. RA: INH000019512

CNI Finsight Institutional Research Archive

Proprietary equity analysis, valuation models & macro commentary by CNI InfoXchange Research Desk.

Equity Analysis Institutional Insights Market Trends 6 Min Read

मेरी सलाह स्पष्ट है: **अभी 75/50/25 thresholds को validate करके production में मत डालिए। पहले backtest methodology को ठीक कीजिए।** आपकी current script के आधार पर मैं यह क्रम रखूँगा: ### 1. `persistence_ratio` की definition पहले freeze करें सबसे पहले यह

CNI InfoXchange Research Desk
INH000019512 · Published 28 Aug 2026 (3 months ago)
Share
Executive Research Takeaway

आप जो कर रहे हैं वह एक सही और काफ़ी mature research direction है। इसे अब बस production‑grade बनाना है। नीचे इसे practically implement / audit करने का straight plan दे रहा हूँ, आपके ही points के क्रम में।

आप जो कर रहे हैं वह एक सही और काफ़ी mature research direction है। इसे अब बस production‑grade बनाना है। नीचे इसे practically implement / audit करने का straight plan दे रहा हूँ, आपके ही points के क्रम में।


1. persistence_ratio की mathematical definition फाइनल करें

Objective: “Expansion move अभी कितना बचा है / original expansion move”

एक clean, sign‑aware definition रखिए:

  • Long expansion के लिए:
  • origin_price = P0
  • expansion_extreme = H_exp (T0 तक का highest high)
  • expansion_size = H_exp − P0
  • किसी future time Tk पर:
  • remaining_move = max(H_exp − Close_k, 0)
  • persistence_ratio_k = remaining_move / expansion_size
  • Short expansion के लिए symmetric:
  • origin_price = P0
  • expansion_extreme = L_exp
  • expansion_size = P0 − L_exp
  • remaining_move = max(Close_k − L_exp, 0)
  • persistence_ratio_k = remaining_move / expansion_size

Behavior constraints:

  • Clip to [0, 1] या थोड़ा बाहर जाने पर भी upper cap 1.0 पर रखिए।
  • अगर price origin से भी ज़्यादा reverse कर जाए, तब भी 0 से नीचे न जाने दें (या अलग flag दें, लेकिन main metric 0–1 में रहे)।
  • अगर आप पूरे move को ATR units में माप रहे हैं (यानी denominator ATR multiples में है), तभी नाम रखें: ATR Expansion Persistence; वरना generic Expansion Persistence।

पहला gate:

  • इस function की definition + inputs/outputs document कीजिए (direction, origin, extreme, expansion_size, ATR_T0, timestamps)।
  • Synthetic price paths पर unit tests लिखिए (straight trend, sharp mean‑reversion, overshoot, chop) और देखिए कि persistence intuitive तरह से behave करता है।

2. Look‑ahead bias पूरी तरह हटाएँ

Implementation discipline:

  • T0 (expansion event confirm bar close) पर एक snapshot row बनाइए:
  • symbol, date_T0, origin_price, expansion_extreme, expansion_size, direction, ATR_T0, BB_state, DS_params, etc.
  • यह snapshot table immutable होनी चाहिए; future candles के आने पर T0 के किसी भी field को अपडेट न करें।

Future evaluation:

  • हर horizon k ∈ {1,3,5,10,20} के लिए:
  • Close_Tk और full path P(T0+1 … T0+k) raw price data से निकालें।
  • future_return_k और persistence_ratio_k T0 पर frozen expansion_size पर आधारित compute करें।
  • Important: T0 पर “event qualify हुआ या नहीं” का decision future candles से नहीं बदलना चाहिए।

3. Threshold हटाकर पहले continuous relationship validate करें

Workflow:

  1. हर event × horizon पर raw persistence_ratio_k और future_return_k store कीजिए।
  2. फिर relationship check कीजिए:
  • Scatter / hexbin: persistence_ratio_k बनाम future_return_k
  • Binned averages: say 10 deciles या quantiles में बाँटकर:
  • प्रत्येक bin का median, mean, win‑rate, MFE/MAE निकालिए।
  • Smooth curve (LOESS / spline / simple rolling mean) से eyeball monotonicity।
  1. अगर relationship reasonably monotonic नहीं है, तो:
  • या तो signal weak है,
  • या कुछ regime / instrument specific effect है,
  • या transformation की ज़रूरत है (जैसे logit(persistence), buckets on tail only, आदि)।

Thresholds (75/50/25 या कुछ और) तभी justify हैं जब:

  • Persistence बढ़ने पर excess future return vs baseline भी व्यवस्थित रूप से improve हो,
  • और ये pattern अलग‑अलग sub‑samples में stable हो (regime robustness test)।

4. Threshold discovery सिर्फ Discovery set पर

आपका 40 / 30 / 30 split सही है, पर discipline ये रहे:

  1. Discovery (40%):
  • यहाँ आप:
  • threshold candidates grid search कर सकते हैं (जैसे persistence > 0.7, >0.8, आदि),
  • objective चुनें: e.g. excess median return, Sharpe vs baseline, win‑rate improvement, tail‑risk reduction आदि।
  • एक final threshold set चुनें: (उदाहरण: Strong ≥ 0.75, Medium 0.50–0.75, Low < 0.50) – यह सिर्फ example है।
  1. Validation (30%):
  • Discovery से चुने गए thresholds hard‑coded रखिए।
  • Validation पर सिर्फ performance report:
  • क्या effect size बरक़रार है?
  • क्या direction same है?
  • Thresholds re‑optimize नहीं होंगे।
  1. Confirmation (30%):
  • Same frozen thresholds।
  • Final audit: stability, breakdown by instrument / regime / event‑age आदि।

सार: Optimization केवल Discovery में; बाकी दो blocks pure out‑of‑sample evaluation हैं।


5. Primary statistical test: Strong बनाम Low / Rest

यहाँ एक clear testing framework बना सकते हैं:

  • Groups:
  • G1: Strong Persistence (e.g. top X% या > fixed threshold)
  • G2: Low Persistence
  • Optional: G3 = All Others
  • Primary comparisons:
  • G1 vs G2
  • G1 vs (All − G1)

Metrics per group (हर horizon पर):

  • Median और mean future return
  • Win‑rate (PnL > 0), baseline vs signal
  • MFE, MAE distributions
  • Holding‑period drawdown profile (option‑seller के लिए relevant)

Statistical tests:

  • Difference in medians: Mann‑Whitney U / rank‑sum
  • Effect size:
  • Cohen’s d (अगर distribution reasonably symmetric हो),
  • या Cliff’s delta / rank‑biserial correlation।
  • Confidence intervals:
  • Non‑parametric bootstrap (returns और win‑rate दोनों पर)।
  • साथ में:
  • Sample size per bucket (कहीं 2–3% tail में बहुत कम sample न हो),
  • Multiple horizons × multiple buckets पर testing कर रहे हों तो basic multiple‑comparison awareness रखें।

6. Overlapping events / episodic control

अभी आपने सही spot पकड़ा है: एक ही volatility episode से 4 दिन लगातार events आएँ तो वो independent observations नहीं हैं।

Practical तरीका:

  • एक expansion episode define कीजिए:
  • Continuous stretch जहाँ ATR‑expansion condition true है (या BB‑compression से निकलकर high‑vol regime चल रहा है)।
  • Episode को एक single event में compress करने के लिए कोई rule चुनिए:
  • First qualifying bar को T0 मानिए,
  • या जिस bar पर expansion_size सबसे ज़्यादा हुआ, उसे T0 चुनिए,
  • लेकिन rule deterministic और documented हो।

Impact:

  • Sample size घटेगा, लेकिन observation independence बेहतर होगी।
  • अगर किसी वजह से overlapping events रखना ही हो, तो बाद में clustered standard errors / block bootstrap जैसे methods consider कर सकते हैं; पर आपका “एक episode = एक event” वाला approach cleaner है।

7. 10D / 20D horizons के साथ MFE/MAE ज़रूरी

Option sellers के लिए यह critical है।

Per event, per horizon k:

  • Return_k (close‑to‑close या origin‑to‑close, जैसा आपने standardize किया हो)
  • MFE_k = max favorable move (direction के हिसाब से), T0+1 … T0+k में
  • MAE_k = max adverse move

ये तीन चीज़े साथ देखें:

  • Example जैसा आपने दिया:
  • 10D Return = +0.5%
  • MFE = +4.0%
  • MAE = −3.2%
  • Naked / lightly‑hedged option writer के लिए यह clearly high risk episode है, जबकि सिर्फ 10D return देखेंगे तो लगेगा “flat to positive, ठीक है।”

आगे चलकर आप:

  • MFE/MAE को underlying realized volatility proxy की तरह भी उपयोग कर सकते हैं (event level realized sigma), जो IV‑RV comparison को और मजबूत करेगा।

Option‑writing framework में role: persistence_ratio = risk component, not main trigger

आपका high‑level flow बिल्कुल logical है:

```text BB Compression ↓ ATR Expansion ↓ Expansion Persistence ↓ ADX / Trend ↓ IV ↓ RV ↓ IV − RV ↓ Expiry / Gamma profile ↓ ATM / OTM / NO SELL

Recommended positioning:

  • persistence_ratio = trend/volatility regime की quality / risk tag:
  • High persistence + strong trend + IV >> RV → trend‑friendly, premium‑rich environment (example use‑case: OTM या light‑hedged plays)।
  • Low persistence + choppy ADX + IV ≈ RV → mean‑reversion prone, NO‑SELL या केवल hedged / very small position (example)।
  • Main “go / no‑go” anchor:
  • IV − RV (edge),
  • risk constraints (expiry proximity, gamma / vega concentration),
  • और instrument‑specific factors (liquidity, spreads, lot size, margin, etc.)।

इसे कभी भी अकेला “sell ATM/OTM” signal न बनाइए; बल्कि risk score के एक feature की तरह use कीजिए।


Final practical roadmap (what to LOCK, RESEARCH, ADD)

LOCK (freeze & reuse):

  • BB compression definition + validated performance
  • ATR expansion event definition (T0 logic, thresholds, universes)
  • Demand/Supply structure parameters (जिन्हें आप पहले से validate कर चुके हैं)
  • Chronological IS/OOS split logic (40/30/30, fixed calendar / walk‑forward जो भी आपने चुना है)

RESEARCH / REVISE:

  • persistence_ratio की final math + implementation audit
  • 75/50/25 (या किसी भी) thresholds – केवल Discovery set पर
  • Volume 3× जैसे secondary filters
  • Event‑age thresholds (compression‑to‑expansion lag, expansion‑to‑signal lag, आदि)

ADD (नए controls & diagnostics):

  • Event de‑duplication (episodes)
  • Look‑ahead audit (T0 snapshot; no future‑dependent event definition)
  • MFE/MAE per event per horizon
  • Bucket‑vs‑baseline tests:
  • High persistence vs low / rest
  • With effect size + CIs, not सिर्फ “return ≠ 0”
  • IV vs RV layer:
  • Event‑level realized vol proxy from path (MFE/MAE / realized sigma)
  • Comparison vs option IV, especially for option‑writing decisions

और सबसे important gate वही जो आपने लिखा:

get_atr_expansion_persistence_status() की mathematical definition को independent audit करके freeze कीजिए; फिर ही किसी threshold backtest या production rollout पर जाएँ।

अगर आप चाहें तो अगला step यह हो सकता है कि हम इसी definition के लिए एक exact pseudo‑code + unit‑test plan तैयार कर दें, जिसे आप सीधे अपनी backtest/production codebase में plug कर सकें।

If you have any further queries, please connect with us on 022-6290-10141 (Timings : 09.00 AM to 05.00 PM) or you can email us on info@cniinfoxchange.com

Discussion Thread (1 Consultations)

Follow-up Questions & Contextual Consultations

+ Start New Chat / Ask Another Stock
Ask a Follow-up Question on this Thread: The AI remembers the entire discussion above

Need Deeper Clarity on this Research?

Connect with our senior research analysts (Mon-Fri 09:00 AM - 05:00 PM IST)

Call 02269010141
SEBI Statutory Research Analyst Disclosure

CNI INFOXCHANGE PRIVATE LIMITED is a SEBI registered Research Analyst (Registration No. INH000019512, valid till January 2030). This research analysis and market insight is compiled for educational and informational purposes only and does not constitute personalized investment advice or an offer to buy/sell securities. Securities markets are subject to market risks. Read all scheme and offer related documents carefully before investing.