CNI FINSIGHT AI SEBI Registered RA — INH000019512

Ask Any Indian Equity & Market Question

Instant AI-assisted market intelligence backed by 30+ years of CNI InfoXchange proprietary equity research & 715+ verified investor Q&As.

Trending Prompts:
CNI FINSIGHT THREAD SEBI Reg. RA: INH000019512 Active Consultation
Share Thread
Synthesizing Contextual Intelligence...

Analyzing prior discussion, market fundamentals & SEBI research models...

Continue this thread on this stock: AI retains previous answers in this memory thread
Want to ask about another stock or start over?
715+ Archived Investor Q&As
Real-Time Equity & Macro Synthesis
Institutional Grade Research Archive
RESEARCH KNOWLEDGE ARCHIVE

Verified Investor Questions & Analyst Answers

Showing page 8 of 48 · 715 verified insights

Institutional Flows #106
02 Sep 2026 · 3 months ago

Context: आपके established Step-A→Phase-1→Phase-2-workflow को genuinely-पूरी-तरह-follow किया — Full(x1+x2) बनाम Reduced(x1-only), Pooled+L2-Regularized, TimeSeriesSplit-CV से C-tuned, पूरे-600,278-records पर। असली, निर्णायक-नतीजे: System n Full(x1+x2)-CV

नतीजों से मिलने वाला सबसे साफ़ सिग्नल यह है: आपके NIFTY 10/20/60‑day direction hypothesis (x1 = ADX percentile, x2 = slope) को, आपके ही Step‑5‑criterion के हिसाब से, directional edge के लिए “failed / information‑poor” मा...

नतीजों से मिलने वाला सबसे साफ़ सिग्नल यह है: आपके NIFTY 10/20/60‑day direction hypothesis (x1 = ADX percentile, x2 = slope) को, आपके ही Step‑5‑criterion के हिसाब से, directional edge के लिए “failed / information‑poor” मानना बिल्कुल जायज़ है — कम-से-कम “index direction classification” वाले इस exact setup में।


01 x1 vs x2 और कुल hypothesis पर निष्कर्ष

आपके observed numbers:

  • Baseline (coin‑flip) log‑loss ≈ ln(2) ≈ 0.693
  • आपके मॉडल्स:
  • OLD (451k rows): ~0.6888
  • NEW_v2 (149k rows): ~0.6851
  • Full(x1+x2) vs Reduced(x1 only): हर बार reduced model थोड़ा बेहतर
  • Best C हर बार = 0.001 (grid का सबसे छोटा, यानी strongest L2)

इससे तीन साफ़ बातें निकलती हैं:

1 x2 (slope) information‑negative या purely noise जैसा behave कर रहा है

  • Full vs Reduced में difference 1e‑4 के order पर है (0.00005–0.00009), और हर बार reduced बेहतर।
  • Time‑series CV में यदि कोई feature consistently मदद नहीं कर रहा और थोड़ा-सा भी harm कर रहा है, तो वो practical रूप से “dead weight” है।
  • आपके अपने criterion (“अगर x2 जोड़ने से CV loss materially improve नहीं होती”) के हिसाब से x2 को drop करना पूरा justified है।

2 x1 (ADX percentile) का incremental edge भी बेहद छोटा है

  • Baseline 0.693 से आपका best ~0.685‑0.689 है — यानी improvement सिर्फ़ ~0.004–0.008.
  • 6 लाख observations के साथ इतना छोटा log‑loss improvement statistically देखने लायक हो सकता है, लेकिन economically बहुत weak है, खासकर NIFTY index directional trading के लिए (costs, slippage, regime shifts इत्यादि के बाद)।
  • Net message: x1 direction predict करने में बस हल्का‑सा tilt देता है, robust ट्रेडेबल edge नहीं।

3 Direction‑forecasting objective खुद बहुत कठिन / लगभग “efficient” सा behave कर रहा है

  • NIFTY जैसे broad index पर 10–60 दिन आगे का “up/down” classify करना वैसे भी globally hard problem है।
  • आपने reasonably disciplined workflow, proper CV, regularization आदि किया और फिर भी log‑loss बस coin‑flip के थोड़ा‑सा नीचे है — इसका मतलब है कि इस feature‑family से index‑direction में meaningful information नहीं निकल रही।

इसलिए, आपके Step‑5 logic के अनुसार, इस exact “NIFTY 10/20/60 day direction via ADX‑regime + slope” hypothesis को directional context में failed मानना बिल्कुल consistent है।


02 Best C = 0.001 का सही meaning क्या है?

यह point बहुत critical है, क्योंकि 600k rows और सिर्फ़ 1–2 features के साथ classical statistics कहती है कि overfitting का ख़तरा कम होना चाहिए; फिर भी CV strongest regularization चुन रहा है।

TimeSeriesSplit‑CV में C = 0.001 चुना जाना practically ये कह रहा है:

1 Cross‑time stability बहुत कमजोर है

  • जब C बड़ा होता है (कम regularization), model अलग‑अलग periods के छोटे patterns को aggressively fit कर देता है, जो आगे की folds में टूट जाते हैं।
  • CV यह देख रही है कि जैसे‑जैसे coefficients बढ़ते हैं, OOS log‑loss ख़राब हो जाती है, इसलिए वो coefficients को लगभग शून्य पर shrink करके ही best OOS performance पा रही है।
  • मतलब: जो भी weak relationship है, वो time‑stable नहीं है, या इतना fragile है कि थोड़ी भी flexibility देने पर future में टूट जाता है।

2 Model practically “near-constant probability” prefer कर रहा है

  • Strong L2 के साथ 1‑D / 2‑D logistic regression में typical outcome यह होता है कि:
  • Intercept ≈ logit(unconditional win‑rate)
  • Slope coefficients बहुत छोटे → probability range बहुत narrow, say ~0.49–0.51 जैसा (illustrative example)।
  • यानी model कह रहा है: “Unconditional base‑rate से थोड़ा‑सा ही deviate करो; उससे ज़्यादा tilt दोगे तो future में नुकसान है।”
  • इससे साफ़ signal मिलता है कि x1 का predictive strength बहुत low है; CV खुद उसे shrink कर रहा है।
  1. क्या इसका कोई “और” meaning हो सकता है?
  • High‑dimensional models में small C कभी‑कभी “overfit avoid करने के लिए needed” होता है;
  • लेकिन यहाँ सिर्फ़ 1–2 simple features हैं, huge N है — ऐसे setup में अगर best C फिर भी minimal पर अटक जाए, तो default interpretation यही है:

features का time‑robust signal इतना कमजोर है कि model को लगभग flat ही रखना safest है।

ऐसा कोई standard interpretation नहीं है जो इन नतीजों को “strong hidden edge” की तरफ twist कर सके। Normal quant / ML practice में इसका सीधा मतलब है: “Signal बहुत weak और unstable है; उसे ज़्यादा weight देना CV penalize कर रहा है।”


03 अब क्या इस system को archive कर देना चाहिए?

आपके documented workflow और ऊपर के नतीजों के आधार पर, direction‑trading point of view से जवाब सीधा है:

> हाँ — इस exact ‘Index Direction 10/20/60 day via (x1,x2)’ hypothesis को ‘failed for directional edge’ declare करके archive करना rational और fully‑defensible है।

यानि:

  • इस setup को आगे tune करते रहना, small tweaks (new C‑grid, tiny transforms) करके यही objective बचाने की कोशिश करना research capital का inefficient use हो जाएगा।
  • Better है कि इसे “negative result” की तरह intentionally record किया जाए:
  • “ADX percentile + simple slope, linear‑logistic, pooled, L2, time‑series CV → NIFTY 10–60 day direction में economically meaningful edge नहीं देता।”

04 कोई “आख़िरी genuine check” बचा है क्या, बंद करने से पहले?

Strict necessity के नज़रिए से: नहीं — आपकी current pipeline already काफ़ी thorough है। लेकिन अगर आप बिल्कुल clinically complete होना चाहते हैं, तो सिर्फ़ ये 2–3 sanity checks worth हैं (fast, bounded efforts):

1 Monotonic binning / calibration of x1

  • x1 (ADX percentile) को, say, deciles या vigintiles में bucket कीजिए और P(up | bucket, horizon) plot कीजिए।
  • अगर curve लगभग flat है या non‑stable है, तो यह अंतिम confirmation है कि directional edge नहीं है।
  • अगर सिर्फ़ extreme buckets (top/bottom 5%) में हल्का tilt है, तो भी वो overall 0.685‑0.689 log‑loss तक ही translate होता दिख रहा है — यानी pure directional system justify नहीं करेगा, लेकिन regime filter / sizing logic के लिए useful हो सकता है।

2 Year‑by‑year / regime‑by‑regime CV performance

  • Rolling window या year‑slice पर log‑loss / accuracy देखें।
  • अगर कुछ सालों में edge positive और कुछ में negative है, और overall wash‑out है, तो ये “structurally unreliable” होने का clear evidence है — archive decision और मज़बूत हो जाएगा।

3 Objective re‑check (direction vs. कुछ और)

  • Same features को pure “up/down” की बजाय, उदाहरण के लिए:
  • “big up vs बाकी”, या
  • “|return|>threshold & sign” type events, या
  • volatility / range prediction
  • पर चेक कर सकते हैं — लेकिन ये actually नया hypothesis होगा, न कि उसी hypothesis को बचाने की कोशिश।
  • Directional hypothesis के context में, current evidence already sufficient है इसे “fail” मानने के लिए।

मैं इन तीनों को optional forensic checks मानूँगा, not prerequisites. उन्हें किए बिना भी, आपके पास archive करने के लिए पर्याप्त grounds हैं।


05 आगे का रास्ता: pieces को कहाँ reuse करना ज़्यादा sensible है?

आपके खुद के सुझाव बिल्कुल सही direction में हैं:

1 Cross‑sectional stock selection / relative strength

  • ADX‑based regime, multi‑horizon filters, RS‑logic अक्सर single‑index direction से ज़्यादा cross‑sectional dispersion में काम आते हैं।
  • e.g. NIFTY में overall direction random‑like हो, लेकिन high‑RS vs low‑RS stocks में persistent relative trends हों — वहाँ आपका framework ज्यादा scope देगा।

2 Regime filters / risk‑sizing, not outright direction

  • x1 को “trade या no‑trade / leverage up or down” kind of state variable की तरह इस्तेमाल करना, न कि “buy index or short index” classifier की तरह।
  • E.g. high ADX percentile regimes में only trend‑following cross‑sectional systems run; low ADX में mean‑reversion pairs, आदि।

3 Multi‑horizon filter logic

  • आप द्वारा बनाया गया multi‑horizon framework (10/20/60 days) को किसी अलग target (e.g. volatility, dispersion, sector‑spread) पर apply करना ज्यादा fruitful हो सकता है।

Net summary: Directional NIFTY 10–60d hypothesis: close it out as a clean negative result. Framework और building blocks को cross‑sectional और risk‑regime contexts में reuse कीजिए।


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

Fundamental Analysis #107
02 Sep 2026 · 3 months ago

Diagnostic-A (OLD-Subsampling, 100-iterations, size-matched-to-NEW_v2): Horizon coef_x2-range (OLD-subsamples) Sign-flip-% 10-din [-0.329, 0.111] 61.0% 20-din [-0.230, 0.192] 33.0% 60-din [-0.092, 0.279] 2.0% असली-NEW_v2-fitted coef_x2 (Step-A से): 60-d

निष्कर्षों का status: x1 vs x2, OLD vs NEW_v2 x1: हर सिस्टम/होराइज़न पर z>4 (सिवाय NEW_v2-60din पर भी 0.88 है, पर OLD में बहुत strong), यानी “established-strong predictor” मानना बिल्कुल ठीक है। x2 (OLD): तीनों OLD hori...

  1. निष्कर्षों का status: x1 vs x2, OLD vs NEW_v2
  • x1: हर सिस्टम/होराइज़न पर z>4 (सिवाय NEW_v2-60din पर भी 0.88 है, पर OLD में बहुत strong), यानी “established-strong predictor” मानना बिल्कुल ठीक है।
  • x2 (OLD): तीनों OLD horizons में |z|<2 → classical अर्थ में “consistently non-significant / weak”।
  • x2 (NEW_v2):
  • 10-din: z≈5.15 → very strong (statistically)।
  • 20-din: z≈0.23 → कोई evidence नहीं।
  • 60-din: z≈1.58 और coef ≈ −0.528 जो OLD-subsampling-range [-0.092, 0.279] से बाहर है → moderate tension with OLD-regime.
  • Correlation(x1,x2): 0.20 → 0.42 (moderately high, पर severe multicollinearity नहीं; typically चिंता >0.8 पर होती है)।

आपका qualitative summary (“x1 हमेशा strong, x2 OLD में weak, और NEW_v2 में correlation दोगुना”) संख्याओं के हिसाब से सही है।


  1. “दो कारण साथ” vs “एक ही कारण के दो symptom”

(a) “x2 weak predictor है” और (b) “NEW_v2 में multicollinearity बढ़ी”

ये theoretically अलग concepts हैं:

  • Weak predictor status (x2):
  • DGP level पर “true β₂ लगभग zero या बहुत छोटा” होने से आता है।
  • इसका symptom: low |z|, high sign-flip %, subsampling में coef ranges जो zero को comfortably cover करते हैं (जैसा आपने OLD में देखा)।
  • Multicollinearity (x1–x2 correlation ↑):
  • Purely design-matrix property: predictors की आपसी correlation से आता है, न कि β₂ के true value से।
  • Effect: SE inflate होते हैं, coefficients unstable हो सकते हैं; signs flip होने की probability बढ़ती है, especially जब signal खुद weak हो।

आपकी case में:

  • OLD में x2 weak था और correlation भी केवल 0.20 थी → multicollinearity minimal, weakness असल में low signal की वजह से लगती है।
  • NEW_v2 में correlation 0.42 हो गई, यानी moderate multicollinearity add हो गई।
  • इसलिए यहाँ “दो अलग factors” हैं, जो मिलकर x2 के estimate को और unstable बनाते हैं; यह “one-cause-two-symptom” नहीं, बल्कि दो independent लेकिन interacting कारण हैं।

  1. x2 को drop करना established-practice के नज़र से सही है?

Hard-deletion vs regularization के lens से देखें:

(i) केवल OLD evidence पर x2 drop करना

  • OLD में x2 हर horizon पर non-significant था, पर NEW_v2 में data-generating-process स्पष्ट रूप से shift हुई है (means बदले, correlation दोगुनी, और 10-din पर z=5.15)।
  • ऐसे में “OLD में कभी significant नहीं था, इसलिए अब भी बेकार है” कहना valid नहीं है, क्योंकि regime/structure बदल चुकी लगती है।

(ii) Theoretical importance vs p-values Established econometrics / finance-practice में:

  • अगर कोई feature theoretically important है (जैसे कोई well-known risk factor, macro variable, microstructure variable), तो इसे सिर्फ़ OLD-period में insignificance की वजह से तुरंत drop नहीं किया जाता, खासकर जब NEW sample में structural changes दिख रहे हों।
  • आमतौर पर:
  • Model selection p-values पर नहीं, बल्कि predictive performance + theory + stability diagnostics पर किया जाता है।

(iii) Multicollinearity के साथ typical fix

  • Classical fix:
  • Ridge/L2 या अन्य regularization → weak but correlated variables के coefficients shrink हो जाते हैं, पर information lose नहीं होती।
  • अतः, आपके पहले से चुने हुए “pooled + L2-regularized” workflow के हिसाब से:
  • x2 को तुरंत drop करने के बजाय, L2 को allow करने देना कि वो x2 के weight को सीख कर shrink करे, ज़्यादा standard approach है।

(iv) Practically क्या करें?

  • दो models compare करें (per horizon और pooled दोनों पर):
  1. Full: y ~ x1 + x2
  2. Reduced: y ~ x1
  • Cross-validated out-of-sample performance (e.g. MSE, log-loss, whichever relevant) देखिए:
  • अगर x2 जोड़ने से predictive performance materially improve नहीं होती (या degrade होती है), तब x2 को drop करने का practical justification मजबूत हो जाता है।
  • अगर थोड़ा भी stable improvement मिलता है, तो x2 को रखकर L2-regularization से coefficient shrink करना बेहतर माना जाता है।

निचोड़:

  • “x2 OLD में कभी significant नहीं था” → अपने-आप में drop करने का पर्याप्त कारण नहीं, क्योंकि NEW_v2 structurally अलग दिख रहा है।
  • Established-practice में, theoretically-important, weak, moderately-collinear features को पहले regularization और out-of-sample tests से handle किया जाता है, hard deletion बाद की stage में आता है।

  1. NEW_v2-10din पर x2 का z=5.15: genuine horizon-effect या noise?

आपके numbers indicate:

  • 10-din: strong positive/negative (magnitude large, z=5.15)
  • 20-din: लगभग zero effect (z=0.23)
  • 60-din: moderate (z=1.58), पर OLD-range से बाहर और sign भी अलग (−0.528 vs OLD mostly ≥0 side)।

यह दो तरह से explain हो सकता है:

Case A: Genuine horizon-specific relationship

  • कुछ financial/economic processes short-horizon पर strong और long-horizon पर dilute हो जाते हैं (e.g. order-flow, liquidity, intraday mean-reversion effects जो 10-day में दिखते हैं, पर 60-day में wash-out)।
  • अगर x2 की theory ऐसे किसी short-horizon mechanism से जुड़ी है, तो सिर्फ 10-din पर strong होना बिल्कुल plausible है।
  • इस hypothesis को support करने के लिए यह check करें:
  • NEW_v2-10din के अंदर subsampling/bootstrap करके:
  • coef_x2 का sign-range और_SIGN-flip% देखें।
  • अगर subsamples में भी coef stable और sign-flip% low है, तो यह “genuine horizon-specific effect” की तरफ इशारा करता है।

Case B: Noise + multicollinearity side-effect

  • Moderate collinearity (0.42) + regime change + multiple testing (तीन horizons, कई मॉडल) → किसी एक horizon पर large |z| निकल आना purely noisy हो सकता है।
  • Symptoms जो इसे support करेंगे:
  • NEW_v2-10din के अंदर subsampling पर coef_x2 range wide हो, sign-flip% उच्च हो।
  • Slight perturbations (कुछ observations drop, थोड़ा pre-processing change) पर coef और z बहुत बदल जाएँ।

आपके दिए गए डेटा से अकेले यह निर्णायक नहीं कहा जा सकता कि 10-din-effect genuine है या नहीं, पर “एक horizon पर बहुत strong, बाक़ी दो पर weak” → ये उतना alarming नहीं है, बशर्ते 10-din के अंदर stability-tests pass हों और x2 के लिए credible economic story मौजूद हो।


  1. Pooled + L2-regularized model के लिए अब क्या strategy होनी चाहिए?

आपका पहले से chosen workflow (Pooled + L2) conceptually sound है, especially given:

  • x1 बहुत strong है,
  • x2 overall weak/moderate है,
  • correlation moderate (0.42) है, not extreme.

लेकिन इस नई evidence को देखते हुए, practical refinements ये हो सकते हैं:

(i) x2 को तुरंत drop न करें; L2 को काम करने दें

  • Ridge-type regularization multicollinearity में canonical remedy है।
  • अगर x2 की incremental predictive value small है, L2 उसका coefficient अपने-आप छोटा कर देगा।
  • इस तरह आप “information preserve” भी करते हैं और “variance control” भी।

(ii) Horizon-structure को model में explicit बनाना चूँकि behavior horizon-wise अलग दिख रहा है:

  • Option 1 (Pooled, interaction):
  • Single pooled model, पर horizon dummies या spline के साथ interact करें:
  • y ~ x1 + x2 + H + x1×H + x2×H (ridge/elastic-net के साथ)
  • इससे model खुद सीखेगा कि किस horizon पर x2 का coefficient कितना होना चाहिए, साथ में partial pooling होगी।
  • Option 2 (Separate models per horizon with shared λ):
  • तीन अलग ridge models (10/20/60) fit करें, पर cross-validation shared रखें ताकि regularization-level comparable हो।

(iii) Model comparison: with vs without x2 Established workflow enhancement:

  • Ridge(pooled, x1+x2) vs Ridge(pooled, x1-only) को same CV-setup में compare कीजिए:
  • अगर x2 जोड़ने से CV-loss में practically कोई फायदा नहीं (difference negligible vs noise), तो “x1-only” model को baseline मानना reasonable हो जाता है।
  • अगर खासकर 10-din horizon की predictive accuracy materially improve हो रही है, तो x2 को रखना justified है, भले 20/60 पर weak हो।

(iv) If interpretation of x2 is key

  • अगर आपका primary goal “x2 का clean causal / incremental interpretation” है, तो:
  • x2 को x1 पर regress करके residual (orthogonalized x2) use करना,
  • या Bayesian / hierarchical set-up से partial-pooling,
  • या penalized regression with strong shrinkage on x2

जैसे options popular हैं।


  1. संक्षिप्त practical recommendation (आपके numbers के context में)
  • x1 को core, always-included predictor मानना सही है।
  • x2:
  • OLD evidence कहता है: effect बहुत weak था।
  • NEW_v2 कहता है: data-structure बदली है; 10-din पर potential strong effect, 20/60 पर weak-to-moderate।
  • As per established practice in econometrics / ML:
  1. x2 को तुरंत drop न करें;
  2. Pooled + L2 (या horizon-wise ridge) में x1 और x2 दोनों रखकर,
  3. With-vs-without-x2 models का out-of-sample comparison करें;
  4. अगर x2 की predictive gain consistently negligible निकलती है, तभी x1-only simplified model पर switch करना practically justified होगा।

यानी, आपकी “Pooled + L2-regularized” direction fundamentally सही है; नई findings primarily इस बात की तरफ़ इशारा करती हैं कि

  • variable-selection पर p-values से ज़्यादा भरोसा न करें,
  • horizon-specific behavior और regime-shifts को explicitly ध्यान में रखकर, cross-validated performance और coefficient-stability के आधार पर फैसला लें।

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

Equity Research #108
02 Sep 2026 · 3 months ago

पहले जो-भेजा — सभी-6-combinations के coefficients और bucket-patterns (दोहराया-नहीं जा रहा, आपके पास पहले से है)। हमारा genuine, नया-observation (systematic-note-लेते-वक़्त पकड़ा): System n_train (approx) Coefficient-Pattern OLD (सभी-3-horizons) ~105,000

हाँ, यह phenomenon established है कि logistic-regression के coefficients छोटे effective sample-size पर ज़्यादा unstable और कभी‑कभी “extreme” दिखते हैं, और sign-flip भी हो सकता है. लेकिन आपके scale (n≈34k vs 105k, सिर्फ़ ...

हाँ, यह phenomenon established है कि logistic-regression के coefficients छोटे effective sample-size पर ज़्यादा unstable और कभी‑कभी “extreme” दिखते हैं, और sign-flip भी हो सकता है. लेकिन आपके scale (n≈34k vs 105k, सिर्फ़ 2 features) पर अकेला “sample size कम” आमतौर पर इतना बड़ा qualitative change (दोनों coefficients negative, और magnitude 0.5 तक) explain नहीं करता; ज़्यादातर cases में इसके साथ कुछ और भी चल रहा होता है (distribution shift, selection bias, class‑imbalance, आदि).

नीचे पॉइंट‑wise जवाब/next steps:


01 Established theory: छोटे n पर coefficients ज़्यादा unstable क्यों होते हैं?

Logistic regression MLE के लिए asymptotic variance लगभग \[ \text{Var}(\hat\beta) \approx (X' W X)^{-1} \] scale ∝ 1/n होता है. n घटता है ⇒ standard error बढ़ता है ⇒

  • coefficients की magnitude में random “झटके” बड़े हो जाते हैं
  • weak signal या high correlation होने पर sign‑flip फ़्रीक्वेंट हो सकता है
  • rare events या quasi‑separation होने पर betas बहुत बड़े / बहुत negative हो सकते हैं

तो हाँ, “छोटे sample में coefficients ज़्यादा extreme और unstable” एक well‑known effect है.

पर यहाँ दो बातें critical हैं:

  1. आपका NEW_v2 n ≈ 34,800 “absolute sense” में छोटा नहीं है; 2 predictors के लिए यह काफ़ी बड़ा n है.
  2. OLD vs NEW_v2 में सिर्फ़ n नहीं बदला; आपने sampling logic / filters भी बदले हैं (जिससे distribution भी बदला होगा).

इसलिए:

  • सिर्फ़ n का 3‑गुना कम होना variance ~√3 ≈ 1.7 गुना बढ़ाएगा, पर
  • 0.06–0.27 जैसे छोटे coefficients से सीधे −0.5 तक का systematic shift और दोनों signs flip होना आम तौर पर pure sampling noise से कम, और data‑generating process / sample‑definition difference से ज़्यादा explain होता है.

यानी “small‑n instability” factor है, पर अकेला explanation होने की संभावना कम है।


02 क्या यह अकेले NEW_v2‑60din के दोनों‑negative coefficients को genuinely explain कर सकता है?

संक्षेप में: pure sample‑size effect alone – practically नहीं (n≈34k होने पर).

क्लासिक indicators कि यहाँ सिर्फ़ n issue से ज़्यादा चल रहा है:

1 Systematic sign‑change

  • पहले सभी horizons पर x1, x2 broadly एक ही sign (या stable pattern) दिखा रहे थे,
  • अब एक specific combination (NEW_v2, 60 दिन) पर दोनों एक साथ negative और magnitude भी काफी अलग.
  • इतनी structured pattern‑change अक्सर distribution‑shift / selection / feature‑definition change का signal है, न कि सिर्फ़ random fluctuation.

2 Magnitude jump

  • OLD में 0.06–0.27 range = बहुत छोटा effect (OR ≈ 1.06–1.31)
  • NEW_v2 में −0.5 जैसा coef = OR ≈ 0.60; practically काफी बड़ा directional effect.
  • n=34k पर logistic regression इतने बड़े effect को आम तौर पर decent precision से estimate कर लेता है; मतलब अगर data वैसा है जैसा model मान रहा है, तो यह sign काफी “real” हो सकता है, न कि pure noise।

3 आपका सबसे छोटा n भी ~34,792 है

  • logistic regression में pathological instability ज़्यादातर तब दिखती है जब
  • n बहुत छोटा हो, या
  • events rare हों, या
  • quasi‑separation हो.
  • इस case की instability अगर सिर्फ़ n के कारण होती, तो random 34k‑subsamples पर OLD system से भी बार‑बार ऐसे extremes दिखते.

इसलिए conservative interpretation:

> Counter‑intuitive दोनों‑negative coefficients को सिर्फ़ “sample‑size 3x कम” से explain करना statistically weak रहेगा; आपको distribution / sampling / feature‑engineering differences और regime‑shift possibility को भी सीरियसली test करना चाहिए.


03 Established diagnostics: अभी सबसे पहले क्या चेक करना चाहिए?

(A) OLD vs NEW_v2 पर controlled experiment

1 Subsampling experiment (बहुत powerful check)

  • OLD system से (n≈105k) random 34,800‑size के कई (जैसे 100) subsamples लें.
  • हर subsample पर वही logistic model fit करें.
  • coefficients का empirical distribution (mean, sd, quantiles, sign‑flip frequency) निकालें.

Interpretation:

  • अगर इन subsamples पर भी coefficients कभी‑कभी 0.5 तक चले जाते हैं या sign‑flip बहु‑बार होता है, तो small‑n variability बड़ी है; तब NEW_v2 extreme partly वही effect हो सकता है.
  • अगर OLD‑subsamples almost हमेशा 0.06–0.27 range में और same sign देते हैं, तो NEW_v2 का extreme result distribution‑shift / नया sampling logic का signal है, not mere n.

2 Feature और target distribution comparison

  • OLD vs NEW_v2 के लिए उसी horizon पर
  • x1, x2 के histograms / quantiles,
  • y=1 की base rate (% positives),
  • x1–x2 correlation.
  • अगर NEW_v2 में
  • base rate बहुत अलग है, या
  • x1/x2 की distribution बहुत skewed / shifted है,
  • या strong correlation introduce हो गई है,

तो coefficients का pattern बदलना expected है और यह “गहरा structural issue” नहीं, बल्कि “आपने किस data को चुना है” का natural परिणाम है.

3 Standard errors और z‑scores देखें

  • coef / std.error = z‑statistic.
  • अगर −0.289 और −0.528 के |z| बहुत बड़े (जैसे >3) हैं, तो यह काफी well‑supported sign है ⇒ data खुद यही कह रहा है.
  • अगर |z| ~1 के आसपास है, तो यह unstable है; तब small‑n + noise मिलकर इस तरह के coefficients दे सकते हैं.

04 Per‑horizon‑per‑system अलग‑अलग fit vs pooled / regularized approach

(A) Problem with current per‑horizon‑per‑system fitting

  • आप effectively बहुत सारे छोटे‑छोटे models बना रहे हैं: हर system × horizon के लिए अलग logistic fit.
  • इससे:
  • Variance बहुत बढ़ता है (खासकर जहाँ effective n कम हो या class‑imbalance ज्यादा हो).
  • कुछ horizons में coefficients intuitive लगेंगे, कुछ में weird, और pattern पढ़ना मुश्किल होगा.
  • Stability कम और overfitting risk ज़्यादा.

(B) Established बेहतर approach

1 Pooled logistic regression with interactions (frequentist तरीका)

  • Single model बनाइये, जिसमें
  • x1, x2 basic features हों,
  • horizon (जैसे 5, 20, 60 दिन) और system (1..6) को categorical variables की तरह treat करें,
  • ज़रूरत हो तो interactions: x1×horizon, x2×horizon, etc.
  • फिर इस pooled model पर L2‑regularization (या elastic net) लगाएं, और C को cross‑validation से tune करें.

Benefit:

  • जिन horizons/systems में n कम है, वे बाकी horizons/systems से information “borrow” करते हैं ⇒ coefficients ज़्यादा stable बनते हैं.
  • पूरी structure एक ही optimization में आती है; contra‑intuitive coefficients का root‑cause देखना आसान हो जाता है.

2 Partial pooling / hierarchical logistic regression (Bayesian तरीका)

  • Coefficients को horizon/system level पर random effects की तरह मानिए, जैसे:
  • β_j ~ Normal(μ, τ²) जहाँ j = horizon/system group.
  • इससे हर group के coefficients global mean की तरफ shrink हो जाते हैं, खासकर जहाँ local n छोटा हो.

Conceptually यह वही काम करता है जो L2‑penalty करती है, पर model‑based तौर पर.

  1. Regularization tuning practically कैसे करें? (sklearn संदर्भ)
  • LogisticRegression(penalty='l2', C=? , solver='lbfgs' या 'saga')
  • Grid-search या random-search से C चुनें (C छोटा ⇒ stronger regularization ⇒ coefficients छोटे और ज़्यादा stable).
  • Time‑series context हो तो time‑based cross-validation (rolling / expanding window) use करें, random CV नहीं.
  • Objective: out‑of‑sample log‑loss या AUC; interpretability secondary लेकिन stability naturally improve होगी.

05 क्या regularization अकेला counter‑intuitive sign “ठीक” कर देगा?

Important nuance:

  • L2 regularization coefficients को zero की तरफ खींचती है, पर sign अक्सर वही रहता है अगर data का evidence clear है.
  • यानी अगर NEW_v2 data genuinely बोल रहा है कि x1, x2 दोनों negative हैं, तो अच्छी तरह tuned L2 उनसे सिर्फ़ magnitude घटाएगा (−0.528 ⇒ −0.32 जैसी चीज़), sign ज़रूरी नहीं बदले.

इसलिए practically:

  1. पहले distribution‑level diagnostics और OLD‑subsampling experiment से check कीजिए:
  • अगर clear है कि NEW_v2 का pattern genuinely अलग regime जैसा दिखता है, तो शायद model को वही सीखना चाहिए; इसे “counter‑intuitive” सिर्फ़ पुराने intuition के basis पर न मानिए.
  1. उसके बाद pooled + regularized model लगाइये:
  • अगर pooled model + regularization के बावजूद उस horizon/system पर coefficients persistently negative रहते हैं और OOS performance ठीक है, तो यह strong evidence है कि वहाँ real conditional relationship बदल चुका है (या आपने sample‑definition drastic बदला है).

Bottom line ( आपके specific सवाल पर सीधा निष्कर्ष )

  1. हाँ, logistic coefficients छोटे effective sample‑size पर ज़्यादा unstable/extreme होना जानी‑पहचानी चीज़ है; sign‑flip भी theoretically expected है.
  2. लेकिन, n≈34.8k बनाम 105k के gap से alone इतना बड़ा qualitative बदलाव (दोनों coefficients negative और magnitude jump) explain होने की संभावना low है; कुछ न कुछ data‑distribution / sampling / feature‑engineering difference भी चल रहा होगा.

3 Established अगला कदम:

  • OLD data पर subsampling experiment करके purely n‑effect को quantify कीजिए.
  • OLD vs NEW_v2 distributions (x1, x2, y, correlations) compare कीजिए.
  • फिर per‑horizon‑per‑system अलग‑अलग फिट की बजाय एक pooled, L2‑regularized logistic regression with horizon/system features (और ज़रूरत पर interactions) अपनाइए, C को time‑series cross‑validation से tune कीजिए.
  • छोटे‑n वाले horizons/systems में coefficient‑stability काफी improve होगी, और आपको ज़्यादा भरोसेमंद pattern दिखाई देगा.

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

Equity Research #109
02 Sep 2026 · 3 months ago

Context: आपके established Step-A-design (properly-fitted sklearn.LogisticRegression, chronological-70/30-split, per-horizon-per-system) को genuinely-लागू किया, पूरे-600,278-records पर। हमने पहले controlled-synthetic-data (known-true-relationship, 20,000-r

coef_x2 का horizon-to-horizon sign-flip क्या संकेत देता है? कुछ पॉइंट्स साफ़ रखना ज़रूरी हैं: Scaling (जैसे x2 को 0–1 या z-score में बदलना) sign नहीं पलटता; बस magnitude और intercept बदलेंगे. सिर्फ़ दो features (x1, x...

  1. coef_x2 का horizon-to-horizon sign-flip क्या संकेत देता है?

कुछ पॉइंट्स साफ़ रखना ज़रूरी हैं:

  • Scaling (जैसे x2 को 0–1 या z-score में बदलना) sign नहीं पलटता; बस magnitude और intercept बदलेंगे.
  • सिर्फ़ दो features (x1, x2) वाले logistic में, अगर दोनों बहुत strongly correlated न हों, तो pure multicollinearity से random sign-flip कम होता है; sign-flip ज़्यादातर दो वजहों से आता है:
  1. True effect बहुत weak / unstable है (noise के आसपास घूम रहा है), या
  2. Target relationship वाक़ई context-dependent है (horizon, system, या hidden-regime बदलने पर sign बदलता है).

इसलिए:

  • अगर आप हर horizon/system के लिए अलग-अलग fit कर रहे हैं, और:
  • coefficients छोटे हैं (|β| ~ 0.1–0.3)
  • standard errors बड़े हैं (β/SE ~ 1–2 के आस-पास)
  • और bootstrap / re-split करने पर कभी + आता है, कभी –

तो established-interpretation यही है कि x2 के अंदर बहुत कमजोर या practically-irrelevant information है, या उसका effect बहुत fragile है.

  • अगर किसी एक case (जैसे NEW_v2–60din) में दोनों coefficients लगातार negative और statistically काफी significant निकल रहे हों (bootstrap/कई fits में sign stable रहे) तो यह ज़्यादातर इस बात का संकेत है कि:
  • उस system–horizon में “regime के साथ-sahamati” पर बने trades structurally कम successful रहे हैं,
  • यानी आपकी theoretical intuition (directional alignment बेहतर होनी चाहिए) उस particular setup में गलत साबित हो रही है – यह data का genuine message हो सकता है, न कि सिर्फ़ mis-scaling.

Sign-flip को practically interpret करने का बेहतर तरीका:

  • हर horizon–system pair के लिए:
  • log-loss / Brier score improvement vs intercept-only model देखें.
  • AUC / ROC देखें (सिर्फ़ ranking power).
  • फिर x2 को randomly permute करके performance-drop measure करें (permutation importance).

अगर:

  • AUC ~ 0.50–0.55,
  • log-loss में improvement नगण्य,
  • x2 permute करने से performance लगभग नहीं गिरती,

और coefficients बार-बार sign-flip कर रहे हैं,

तो established पढ़ाई के हिसाब से यही मान लिया जाता है कि x1/x2 regime features में meaningful predictive power लगभग नहीं है (कम-से-कम अकेले इस्तेमाल करने के लिए).

  1. Hold-out bucket non-monotonicity (इतने बड़े n पर) क्या imply करता है?

आपके numbers में:

  • कुछ cases लगभग monotone हैं (जैसे OLD-10din में बस 3rd–4th bucket का छोटा swap).
  • कुछ cases में patterns genuinely अजीब हैं (जैसे NEW_v2–10din और NEW_v2–60din में mid buckets काफी खराब, extremes बेहतर).

n ~ 3000–9000 per bucket होने पर:

  • p ~ 0.6 के आसपास standard error ~ 1–2 percentage points है.
  • 10+ percentage points के डिप्स (जैसे 59 → 49 → 47 या 73 → 71 → 53 → 43) pure noise नहीं कहे जा सकते; वहाँ structure है.

ऐसी non-monotonicity आमतौर पर तीन structural issues से आती है:

1 Very weak / mis-specified score:

  • Logistic model ने “score axis” ऐसा चुना जो असल p(y=1) को monotone ढंग से represent ही नहीं करता.
  • e.g., असली relation U-shaped है या strong interaction है, पर model linear log-odds मान रहा है.

2 Mixture-of-regimes:

  • Score ordering global है, पर dataset कई heterogenous regimes का mixture है.
  • Example: कोई bucket mostly 2020–2021 bull-regime के trades रखती है (high base-rate), कोई दूसरी bucket 2018–2019 sideways regime की है (low base-rate), भले predicted score similarity की वजह से एक ही bucket में आये हों.
  • तब globally sort करने पर कुछ low-score bucket में भी high realized hit-rate दिख सकता है, और mid buckets खराब हो सकते हैं.

3 Feature-space में गलत 1D projection:

  • x1,x2 मिलकर 2D plane पर कोई reasonable boundary देते हैं, पर उन्हें linear combination (β1 x1 + β2 x2) की 1D axis में crush करके आप बहुत सारा structure खो रहे हैं.
  • Score monotone हो ही नहीं सकता क्योंकि असली map p(y=1 | x1, x2) 2D में काफी complex / folded है.

इसलिए, आपकी observation – large sample पर भी buckets genuinely non-monotone – strong signal है कि:

  • या तो model की functional form (global linear log-odds) data generating mechanism के लिए बहुत गलत है,
  • या आप सचमुच regime-mixture / drift में फँसे हैं, जहाँ single global score meaningful “confidence axis” नहीं बना पा रहा.
  1. क्या next step Isotonic Regression (Step-B) होना चाहिए, जब base score weak दिख रहा है?

Isotonic regression के बारे में तीन ज़रूरी practical बातें:

1 Role:

  • Isotonic is a calibration layer on top of an already somewhat-informative score.
  • यह ranking को नहीं बदलता (scores की ordering वही रहती है), सिर्फ़ हर score पर assigned probability को monotone तरीके से adjust करता है.

2 Requirement:

  • अगर base-score सिर्फ़ थोड़ी सी भी usable ranking देता हो (AUC sensibly > 0.55–0.60), तब isotonic calibration आम तौर पर मददगार है.
  • अगर base-score लगभग noise (AUC ~ 0.50–0.52) है, तो isotonic प्रभावी रूप से noise को fit करेगा; out-of-sample में कुछ खास फायदा नहीं.

3 Non-monotone bucket vs score:

  • आपका “bucket non-monotonicity” अभी score→p(y) relation में structural problem दिखा रहा है.
  • Isotonic केवल यही मानता है कि “सही p(y|score)” global sense में monotone होना चाहिए; यह खुद “बेस्ट monotone approximation” सीख लेता है.
  • लेकिन अगर असली दुनिया U-shaped है या mixture-of-regimes है, जहाँ score खुद ही अच्छा sufficient-statistic नहीं है, तो isotonic सिर्फ़ उस mess का smooth monotone average दे देगा; ranking और structural mis-specification नहीं सुधरेगी.

इसलिए:

  • जब तक आपने establish नहीं किया कि:
  • regime-score की AUC / log-loss genuinely materially बेहतर है intercept-only से, और
  • sign और feature importance horizon-specific context में reasonably stable हैं,

तब तक Isotonic को primary “next step” मानना established-practice नहीं होगा. पहले यह validate करना बेहतर है कि score सच में informative है; calibration polishing बाद का step होना चाहिए.

  1. क्या यह संकेत है कि pure NIFTY-regime-based confidence approach ही गलत दिशा में है?

Real-world quant practice में:

  • सिर्फ़ index-level regime features (जैसे NIFTY slope, regime-alignment, volatility regime) आम तौर पर second-order modifiers माने जाते हैं,
  • core predictive power ज़्यादातर stock-level और trade-level features से आता है:
  • stock का अपना ATR / volatility,
  • अपने momentum / trend structure,
  • mean-reversion metrics,
  • liquidity, gap behaviour, intraday volatility structure,
  • strategy-internal signals (setup quality, entry quality, distance-to-ATR SL, etc.).

आपके current results (unstable signs + weak, non-monotone buckets) practically यह signal दे रहे हैं:

  • “Regime only” से confidence-score बनाना बहुत ambitious है.
  • Established approach आम तौर पर:
  1. पहले stock-level/meta-level rich feature set से reasonably strong classifier बनाना,
  2. फिर उस पर index-regime features को incremental predictors / interactions के रूप में जोड़ना (देखना कि incremental improvement आ रहा है या नहीं),
  3. और अंत में calibrated probabilities / confidence निकालना.

इसका मतलब यह नहीं कि आपका entire regime-idea गलत है; इसका मतलब यह है कि:

  • Regime features शायद अकेले insufficient हैं.
  • इन्हें आपको augmenting factors की तरह use करना चाहिए (जैसे position-sizing adjuster, regime-conditional thresholding), न कि primary एक-dimensional confidence-axis की तरह.
  1. क्या large-n पर इतनी mis-calibration deeper structural issue (regime-drift / mixture) का संकेत है? इसे diagnose कैसे करें?

हाँ, इतनी large sample पर genuine non-monotonicity और unstable coefficients अक्सर structural issues का संकेत होते हैं. कुछ established diagnostic steps:

(A) Time-slice stability checks

  • Data को chronologically 2–3 बड़े chunks में बाँटें (जैसे 2016–18, 2019–21, 2022–24).
  • हर slice पर अलग logistic fit करें:
  • देखिए coef_x1, coef_x2 के signs और magnitudes consistency दिखाते हैं या नहीं.
  • हर slice पर hold-out bucket pattern देखें.

Observations:

  • अगर किसी slice में monotone-like pattern और stable sign मिले, पर पूरे अवधि पर नहीं, तो यह regime-drift / mixture-of-regimes का classic केस है.
  • तब solution होगा:
  • या तो time-varying coefficients allow करें (e.g., अलग models per era),
  • या explicit regime-switching / hierarchical framework use करें.

(B) Feature→label direct binnings (model-agnostic)

  • Logistic को भूलकर, pure data exploration करें:
  • x2 को bins में तोड़िए (e.g., quintiles या deciles).
  • हर bin में raw hit-rate निकालिए.
  • यही x1 के लिए कीजिए, और कुछ 2D bins (coarse grid on x1,x2) में भी.

अगर:

  • x2 खुद vs hit-rate में भी कोई clear monotone या मजबूत pattern नहीं दिखाता,

तो ये सीधे-सीधे evidence है कि “directional regime alignment” खुद ही weak predictor है, logistic की गलती नहीं.

(C) Interaction / nonlinearity tests

  • थोड़ा richer लेकिन controlled model लगाइए, जैसे:
  • Logistic में interaction term: x1, x2, x1·x2.
  • या simple tree-based model (e.g., shallow gradient boosted trees) सिर्फ़ इन दो features पर.

फिर:

  • Check करें कि tree-based मॉडल की AUC, log-loss और bucket monotonicity logistic से materially बेहतर है या नहीं.
  • अगर tree भी ज्यादा कुछ नहीं सुधारता, तो features ही informationally कमजोर हैं.

(D) Regime segmentation by exogenous markers

  • NIFTY के लिए exogenous regime labels बनाइए (e.g., bull/bear, high/low VIX, high/low realized volatility).
  • इन external regimes के भीतर-भीतर calibration curves देखें:
  • हर external regime segment के अंदर, score vs hit-rate monotone है या नहीं.

अगर:

  • हर segment के अंदर monotone ठीक-ठाक है, पर globally मिलाकर टूट जाता है,

तो यह साफ़ mixture-of-regimes का मामला है. इसका practical जवाब:

  • या तो per-regime अलग calibrators/models बनाएँ,
  • या scoring function में regime को अधिक सीधे तरीके से model करें (e.g., hierarchical model).
  1. Net interpretation और practical direction

आपके described अनुभव से, established interpretation का condensed version:

  • Sign-flips + weak monotonicity → बहुत high chance कि आपके current x1/x2 NIFTY-regime features अकेले में strong predictive information नहीं carry कर रहे.
  • Pure scaling या trivial multicollinearity इसे explain नहीं करेगी; यह या तो weak effect या context-dependent/inverted effect या structural regime-mixture है.
  • ऐसी स्थिति में:
  • सीधे Step-B (isotonic) पर jump करना अच्छा primary step नहीं;
  • पहले score की genuine informativeness और stability establish करना ज़रूरी है (AUC, log-loss, bootstrap coefficient stability, permutation importance, time-slices).
  • Parallel में, stock-level और strategy-internal features जोड़कर richer model बनाना, और फिर देखना कि regime features incremental value देते हैं या नहीं, यह ज़्यादा aligned है established quant practice से.

अगर इस पूरी diagnostic exercise के बाद भी पता चलता है कि:

  • regime features का incremental gain (in AUC/log-loss) बहुत thin है, और
  • उनका sign context-के-साथ बार-बार उलट जाता है,

तो practically उनका role सिर्फ़ light-weight risk-filter / sanity-check / reporting metric तक सीमित रखना और core confidence scoring किसी और strong feature-space पर shift करना बेहतर रहेगा.


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

Fundamental Analysis #110
02 Sep 2026 · 3 months ago

Context: हमने आपके Sequence-A-Step-1-design (established-logistic-sigmoid: confidence = 1/(1+e^(-regime_score))) को genuinely-लागू किया, फिर पूरे 600,278-records (OLD+NEW_v2-systems, 3-horizons: 10/20/60-दिन) पर established-calibration-check किया। असली-न

Your empirical result is showing genuine mis‑calibration and some mis‑ordering, not just a cosmetic “narrow range” issue. 01 Is “narrow range” the real cause of non‑monotonic calibration? No. Narrow range can explain un...

Your empirical result is showing genuine mis‑calibration and some mis‑ordering, not just a cosmetic “narrow range” issue.


01 Is “narrow range” the real cause of non‑monotonic calibration?

No. Narrow range can explain under/over‑confidence, but not your kind of non‑monotonicity.

  • A logistic map of any scalar score is strictly monotone.

If the underlying regime_score is a good 1‑D proxy for risk, then:

  • higher score ⇒ higher true hit probability, and
  • with your sample sizes (≈30k / bucket for OLD, ≈10k / bucket for NEW_v2), the bucket hit‑rates should be almost monotone increasing apart from tiny noise.
  • Your deviations are large:
  • OLD 10‑day: 53.19 → 50.47 → 52.99 → 51.02 → 56.85

Drops of ~2–3 percentage points with ~30k obs per bucket are multiple‑sigma effects, not sampling noise.

  • NEW_v2 60‑day: 63.38 → 54.91 → 55.56 → 60.52 → 63.10

Drops of up to ~8.5 points (~10k per bucket) are definitely real.

This means:

  • The issue is not that probabilities are compressed to [0.32, 0.69] or [0.57, 0.69].
  • The deeper issue is: the 1‑D score you’re feeding into sigmoid does not order cases cleanly by true hit probability.

In other words, the mapping “regime_score → P(hit)” is not truly monotone in the data, so empirical buckets break monotonicity.

Typical established causes of such non‑monotonic calibration:

1 Mis‑specified 1‑D score

Wrong functional form / weights (w1, w2, ε) → mixture of different patterns getting projected onto a single axis.

2 Mixture of regimes with different response curves

E.g. combining different market regimes, sectors, or volatility states where “score = 0.6” can mean different true probabilities.

3 Feature interactions ignored by the scalar regime_score

If the true decision boundary is non‑linear in your inputs and you compress them into a linear regime_score, you can easily get “mid scores” behaving worse than some lower ones.

4 Time‑dependence / regime drift

If the mapping from score to hit‑rate changed across sub‑periods (e.g., pre‑ and post‑some market event) and you pool them, you can see non‑monotonic bucket behaviour.

So: “narrow range” is at most a secondary symptom (weak separation, under‑confidence), not the primary cause of the non‑monotonic buckets.


02 What to adjust: w1/w2/epsilon vs scale (temperature)?

You have two conceptually different levers:

1 Scale (temperature) inside the sigmoid:

p = 1 / (1 + exp( -scale * regime_score )), with scale currently = 1.0.

  • Changing scale (or adding a bias term) is a pure calibration transform:
  • It does not change ranking of cases.
  • It only stretches/compresses probabilities (e.g. going from [0.32, 0.69] to something closer to [0.1, 0.9]).
  • This is appropriate when the reliability curve is smooth and monotone but systematically under‑ or over‑confident.
  • In your case, the curve is non‑monotone, so:
  • A global scale change cannot fix “Bucket‑1 has higher hit‑rate than Bucket‑2”.
  • It will just move all points up/down and change their slopes.

Conclusion: scale alone is not the right primary fix for your NEW_v2 60‑day pattern.

2 w1 / w2 / epsilon (i.e., the regime_score itself):

  • Changing these does change ranking; you are effectively redefining the 1‑D projection of your underlying signals.
  • In established practice, if you want a probabilistic score from a linear combination, you usually:
  • Treat the components as features and
  • Fit a logistic model:

logit(P(hit)) = β0 + β1 feature1 + β2 feature2 + ... where your regime_score is a special case with hand‑picked βs.

  • Because your bucket behaviour shows real mis‑ordering, you should treat w1, w2, ε as parameters to be estimated, not fixed heuristics.

Recommended hierarchy:

  • Step A – Fix the score first (w1, w2, ε or more flexible mapping).
  • Fit or at least tune these weights using a proper objective (log‑loss, Brier score, or even Sharpe/IC if that’s more aligned with your trading target).
  • Check that hit‑rate vs raw regime_score is roughly monotone before sigmoid/bucketization.
  • Step B – Then apply a monotone calibrator on top:
  • Simple: temperature + bias (Platt scaling) estimated on a held‑out set.
  • More flexible: isotonic regression mapping score → probability, which enforces monotonicity non‑parametrically.

Temperature scaling is for “already monotone but mis‑scaled”; you currently have “not cleanly monotone”, so the main work is on the underlying score, not just the scale.


03 Why is NEW_v2’s range even narrower (0.57–0.69), and is that expected?

Your own guess is essentially right and does have an established interpretation.

  • If Section‑3C “regime hard‑wire” means the system only fires in strongly bullish regimes, then:
  • The conditional base‑rate of hits in this filtered universe is already high (e.g. 55–65%).
  • The model no longer sees the truly bad regimes (e.g. 30–40% hit‑rate); they are excluded upstream.
  • As a result, the predicted probabilities naturally cluster in a narrow band above 0.5, even if the ranking is good.

This is expected behaviour when:

  • The score is applied after a strong filter (only high‑prior cases survive).
  • Or your inputs themselves have low variance in this filtered subset.

So:

  • Narrower range in NEW_v2 is not automatically a separate red flag.

It is consistent with: “we only act in already‑favourable regimes, and we just fine‑tune within that subset.”

  • The real red flag is specifically the shape of the reliability curve:
  • Bucket‑1 (lowest predicted) having 63.38% vs Bucket‑2 at 54.91% is structurally wrong.
  • That says: within that filtered bullish subset, your 1‑D regime_score is not aligned with actual odds.

In other words: “narrow-ness” for NEW_v2 is explainable; non‑monotonicity is not.


04 What should you do now in the workflow: go to Ablation (Step‑3) or refine the score first?

Given what you’ve observed, this is exactly the right moment for “later‑refine”, not for jumping ahead.

Ablation analysis is most meaningful when:

  • Your base score is at least a reasonable ranker (higher score ≈ higher hit‑rate), even if it’s poorly calibrated in absolute terms.

Your current evidence:

  • Significant, consistent rank inversions across buckets, especially in NEW_v2 60‑day.
  • That suggests that the current regime_score is not yet a clean ordering statistic.

Under that condition:

  • An ablation study on this regime_score will mix up:
  • Genuine signal,
  • Mis‑weighted components,
  • And artefacts from regime mixing / mis‑specification.
  • You will get conclusions like “feature X improves performance” which may be contaminated by the current bad projection rather than the feature’s true value.

Pragmatic established sequence:

  1. Refine the core score first. For example:
  • Break out the components that went into regime_score (those behind w1, w2, ε).
  • Fit a proper logistic (or similar) model per horizon (10/20/60‑day) on a chronological train / validation split.
  • Ensure hit‑rate vs score is monotone in each horizon on a hold‑out set.

2 Calibrate probabilities.

  • Start with simple scale + bias (Platt) on hold‑out.
  • If needed, move to isotonic regression for each horizon.

3 Re‑check bucket calibration and monotonicity.

  • Specifically re‑check the worrying NEW_v2 60‑day case.

4 Then run ablation.

  • Now, when you remove/alter components, you’re ablation‑testing against a reasonable baseline score, so the conclusions are much more trustworthy.

So in terms of your own earlier terminology: yes, this is the “later‑refine” moment; calibration + score refinement should come before your serious Step‑3 ablation.


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

Equity Research #111
02 Sep 2026 · 3 months ago

Friend का समग्र-दिशा genuinely-established-quant-practice से मेल खाती है — यह भरोसे-लायक़-रास्ता है। पर \"continuous-confidence-score कैसे-बनाएँ\" का हिस्सा हमारा-अपना-design-choice रहेगा (कोई single-established-formula नहीं मिली) — यह वैसा-ही होगा जैसे ह

यहाँ दो चीज़ें साफ़ हैं: Objective और high‑level दिशा quant‑practice के हिसाब से सही है; Continuous confidence score की exact formula genuinely design‑choice है, कोई canonical “industry standard” नहीं है — जैसा आपने reg...

यहाँ दो चीज़ें साफ़ हैं:

  1. Objective और high‑level दिशा quant‑practice के हिसाब से सही है;
  2. Continuous confidence score की exact formula genuinely design‑choice है, कोई canonical “industry standard” नहीं है — जैसा आपने regime_score के साथ किया था, वैसा ही यहाँ भी होगा (established building blocks + अपना combination)।

अब practically sequence कैसे रखना है (ablation पहले vs continuous‑score पहले), उस पर एक साफ़ view:


Recommended sequence: “Minimal continuous‑score पहले, फिर ablation”

Quant practice में ज़्यादातर cases में यह ज़्यादा practical रहता है कि:

1 Existing regime_score पर simple monotone continuous score बना लो

  • उदाहरण (सिर्फ illustration):
  • पहले regime_score को normalize/standardize करो (z‑score या rank‑based 0–1 scale)।
  • उसके ऊपर logistic या monotonic transform लगा कर उसे “approx. probability / confidence‑like” बना दो।
  • यह v1 score बहुत fancy होने की ज़रूरत नहीं है, बस:
  • monotonic हो (ज़्यादा bullish regime_score ⇒ ज़्यादा confidence),
  • out‑of‑sample stability ठीक हो।

2 इस v1 continuous‑score के साथ basic calibration checks करो

  • Reliability / calibration plots (bucketed PnL, hit‑rate vs score‑buckets)।
  • Drawdown / tail‑risk score‑buckets के हिसाब से।
  • देखो कि high‑confidence bucket सच में lower drawdown / better IR दे रहा है या नहीं।

3 फिर ablation चलाओ, लेकिन evaluation में continuous‑score को भी शामिल रखो

  • हर ablation (feature हटाना, window बदलना, model family बदलना, आदि) के लिए check करो:
  • Regime classification metrics (accuracy, precision/recall, etc.), और साथ में
  • Confidence‑wise behaviour:
  • High‑score bucket का performance degrade तो नहीं हो रहा,
  • Calibration खराब तो नहीं हो रही,
  • High‑confidence trades की share/coverage बहुत कम या बहुत ज़्यादा तो नहीं हो रही।

4 बाद में ज़रूरत पड़ने पर score को refine / redesign कर सकते हैं

  • अगर ablations के बाद core architecture materially बदल जाती है, तो continuous‑score को दोबारा calibrate / redesign कर लेना सस्ता है,
  • लेकिन ablation पूरे समय आपको ज़्यादा rich diagnostics मिलते रहेंगे, क्योंकि आपके पास पहले से एक workable continuous‑score था।

Intuition:

  • पहले एक “rough but usable” continuous metric create करने से experimentation ecosystem मजबूत हो जाता है — आप हर जगह सिर्फ hard regime label नहीं, बल्कि confidence‑aware behaviour देख रहे होते हैं।
  • बाद में अगर कुछ building blocks बदलते हैं, तो continuous‑score को tweak करना आसान है; लेकिन अगर आप अंत तक discrete world में ही रहे, तो बहुत‐सा information exploit ही नहीं कर पाए होंगे।

Alternative (ज़्यादा साफ़ architecture पसंद हो तो): पहले ablation, फिर score

यदि आपकी preference है कि:

  • पहले building blocks + regime architecture पूरी तरह fix हो,
  • फिर उसके ऊपर ही confidence layer बैठाई जाए,

तो sequence यह हो सकता है:

  1. Existing regime_score architecture पर systematic ablation करके एक stable, simple, interpretable variant चुनो (कम moving parts, robust performance)।
  2. Finalised architecture freeze करके उस पर continuous‑score design करो (probability model, margin, ensemble‑agreement, performance‑based weights, जो भी framework चुनना हो)।
  3. Confidence score सिर्फ इसी “frozen” architecture पर calibrate और validate करो।

यह ज़्यादा “clean” है, पर practical downside यह है कि ablation phase में आपके पास continuous diagnostic power नहीं होती; आप सब कुछ सिर्फ discrete outcomes से देख रहे होते हैं।


Practical recommendation (अगर अभी decision लेना हो)

  • Experiments की गति और diagnostics को देखते हुए, एक minimal, जल्दी‑से‑implement continuous‑score अभी बना लेना आमतौर पर ज़्यादा practical है, और बाद में उसे refine करना सस्ता है।
  • Design‑choice उतना ही गणित का सवाल है जितना engineering का — “Early cheap score + later refinement” वाला pattern बड़े क्वांट desks में भी common है, क्योंकि वह development cycle को तेज़ रखता है।

आप friend के जवाब का इंतज़ार बिल्कुल कर सकते हैं, लेकिन अगर तुरंत काम शुरू करना हो, तो ऊपर वाला “minimal score पहले, फिर ablation with calibration‑checks” sequence low‑regret path है।

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

Institutional Flows #112
02 Sep 2026 · 3 months ago

established-Workflow के मुताबिक़ — अगला genuine-क़दम अब Step-2 (Objective-Re-Clarify) Step-1 genuinely-पूरा हो गया (जो-genuinely-संभव-था, सब हो गया)। Friend के established-Step-2 का सवाल था — \"आप model से genuinely क्या करवाना चाहते हैं?\": Pure sign-f

Trend-Direction-v2 के लिए Step-2 (Objective) मैं इस तरह define करूँगा: Core Objective (जो हम मान लेते हैं कि “genuinely” चाहिये): “Expected drift के आस-पास risk‑adjusted position sizing + basic crash‑protection, ताकि lon...

Trend-Direction-v2 के लिए Step-2 (Objective) मैं इस तरह define करूँगा:

Core Objective (जो हम मान लेते हैं कि “genuinely” चाहिये): “Expected drift के आस-पास risk‑adjusted position sizing + basic crash‑protection, ताकि long‑run equity‑curve का CAGR maximize हो, लेकिन drawdown और tail‑risk control में रहें।”

इसे आपके तीन options पर map करके साफ़ कर देते हैं:


01 Pure sign-forecast को primary objective नहीं रखना

  • सिर्फ़ up/down sign सही निकालना अपने‑आप में economic objective नहीं है।
  • Indian equities/index (NIFTY/BankNifty, F&O) में:
  • Even 52–55% hit-rate वाला मॉडल, अगर position sizing खराब हो, तो capital destroy कर सकता है।
  • वहीं 50–51% hit-rate वाला मॉडल भी sensible sizing और risk-control से useful हो सकता है।
  • इसलिए sign-forecast Trend-Direction-v2 का input layer रहेगा (signal-generation), पर primary “objective” नहीं।

02 Primary Objective: Drift के आस‑पास risk-adjusted leverage/position-control

यही मैं Step-2 के लिए main goal चुनूँगा:

  • Model से हमें effectively ये चाहिए:
  1. Directional bias + confidence (drift estimate / strength of trend), और
  2. उसी के आधार पर position size (leverage) और gross exposure decide करना।
  • Practically objective को इस तरह पढ़ें:
  • “Trend-Direction-v2 ऐसा हो कि:
  • जब trend साफ़ और strong हो, तब exposure बढ़े,
  • जब signal weak / noisy हो, तब exposure स्वतः कम हो या flat रहे,
  • और overall risk per trade / per day capital के एक bounded % के भीतर रहे।”
  • Economic translation:
  • Long-run CAGR maximize करना,
  • साथ में Sharpe / Sortino improve करना,
  • और max drawdown को एक acceptable band के अंदर रखना (Step-4 में exact metric fix होगा)।

03 Crash-hedge-system को secondary / constraint objective रखना

  • Indian market में gap-downs, overnight event-risk, और index-level crashes वाक़ई critical हैं।
  • लेकिन crash-hedge को मैं अलग “primary” objective नहीं, बल्कि risk-adjusted leverage-control का हिस्सा / constraint मानूँगा:
  • Example (सिर्फ़ illustration):
  • अगर Trend-Direction-v2 high-long exposure में है और
  • volatility regime suddenly spike करता है, या
  • top-down macro / event-risk trigger आता है,

तो:

  • Index put hedge add करना, या
  • gross exposure कम करना, या
  • trailing stop/timed exit enforce करना — ये सब उसी framework के भीतर आएँगे।
  • मतलब:
  • Main objective: drift-based risk-adjusted positioning,
  • Crash-hedge: tail-risk cap करने वाला add-on / constraint,
  • जो बाद में Step-3 (Ablation) में अलग-अलग blocks की utility check करने में भी साफ़ helpful रहेगा।

Step-2 का Final Statement (जो आगे workflow में “locked” मान सकते हैं)

Trend-Direction-v2-System Objective (Step‑2): > “Trend-Direction-v2 का काम ऐसा predictive signal देना है जो हमें underlying asset/index के expected drift और trend-strength के आधार पर risk-adjusted dynamic position sizing और exposure-control करने दे, ताकि long‑run CAGR maximize हो, subject to controlled drawdown और crash/tail-risk पर basic hedge/protection।”

इस framing से:

  • Step‑3 (Ablation) में आप साफ़‑साफ़ test कर सकते हैं:
  • कौन से features / sub-modules सिर्फ़ sign improve कर रहे हैं,
  • और कौन से वास्तव में risk-adjusted P&L profile बेहतर कर रहे हैं।
  • Step‑4 (Economic metric) naturally ऐसी चीज़ों पर जाएगा:
  • CAGR + Max DD,
  • Sharpe / Sortino,
  • Tail-loss metrics (VaR/ES या simple downside percentile),
  • और शायद leverage-usage efficiency।

अगर आप चाहें तो अगले step में मैं इसी objective के हिसाब से:

  • एक minimal लेकिन complete metric-set propose कर सकता हूँ (Step‑4 के लिए),
  • और फिर उस पर आधारित Ablation design (Step‑3) का skeleton दे सकता हूँ — बिना किसी extra “guessing” के, सिर्फ़ इसी locked objective के अनुसार।

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

Mid & Small-Cap #113
02 Sep 2026 · 3 months ago

Context: हमने established Trend-Direction-v2-system (Section-2/3/4-upgrades: continuous-regime-score, dynamic-ADX-hysteresis, multi-horizon-filter, upgraded-breakout+volume+RS, safer-200DMA-fallback, regime-hard-wire) को OLD-production-system से, establis

Naive “always bullish” को न हरा पाना – expected है या design-flaw? Indian equities (index / large-cap basket) में 10–60 दिन horizon पर unconditional P(up) आम तौर पर 0.54–0.60 के बीच रहती है (upward drift + positive ris...

  1. Naive “always bullish” को न हरा पाना – expected है या design-flaw?
  • Indian equities (index / large-cap basket) में 10–60 दिन horizon पर unconditional P(up) आम तौर पर 0.54–0.60 के बीच रहती है (upward drift + positive risk premium)।
  • आपका result essentially यही कह रहा है:
  • OLD vs NEW-v2 दोनों का raw accuracy ≈ 54–59%
  • baseline-adjusted incremental edge ≈ 0 pp (naive हमेशा-bullish के मुक़ाबले)

इसका मतलब:

  • Model coin-flip (50%) से बहुत बेहतर है (high z-score),
  • लेकिन naive majority-class classifier (always up) से information-theoretic edge लगभग 0 है।
  • Established quant-research terms में:
  • यह finding “बहुत common” है जब आप:
  • एक ही asset / index पर
  • medium-term (10–60 दिन) direction predict कर रहे हों
  • और comparison सही baseline (unconditional P(up), न कि 50%) से कर रहे हों।
  • अधिकांश academic studies और practical desks पाते हैं कि direction prediction का Bayes error margin बहुत छोटा है; majority of the edge drift-और-risk-premium से आता है, न कि sophisticated timing से।
  • इसलिए:
  • सिर्फ़ इस वजह से कि आप naive-bullish को accuracy में नहीं हरा पा रहे, इसे अपने-आप “design-flaw” नहीं माना जाता।
  • पर इसका मतलब यह है कि आपकी current signal-family, जैसा framed है (pure sign-forecast at 10/20/60 days), information-light है:
  • यह “market on average up है” के simple statement से ज़्यादा usable information sign के बारे में नहीं दे रहा।
  1. “Direction-accuracy” vs expectancy / R-multiple – कौन सा सही metric?
  • Established practice में pure win-rate / direction-accuracy को primary metric नहीं माना जाता, खासकर जब:
  • class-imbalance हो (up days ज्यादा),
  • और आप trend-following / drift-driven asset पर काम कर रहे हों।
  • Commonly used बेहतर metrics:
  1. Economic performance metrics (system-level backtest के साथ):
  • Expectancy per trade / per signal (mean R-multiple)
  • CAGR, Sharpe, Sortino, MAR (CAGR / maxDD)
  • Max drawdown, tail risk, volatility of equity curve
  • Turnover और transaction costs बाद का net performance
  1. Forecast-quality metrics (direction model के लिए):
  • Brier score / log-loss (cross-entropy) – probability forecasts के लिए
  • ROC-AUC / Precision-Recall AUC – class-imbalance-aware
  • Calibration curves – P(up)=0.7 bucket में actual up frequency ≈ 0.7 है या नहीं
  • Practical intuition:
  • 55% accurate system भी बहुत profitable हो सकता है अगर
  • average winner >> average loser (RR अच्छा),
  • sizing और exits अच्छे हों।
  • 60% accurate system भी value destroy कर सकता है अगर
  • winners छोटे, losers बड़े,
  • या sizing गलत / over-leverage इत्यादि।
  • इसलिए आपके case में:
  • Raw / baseline-adjusted accuracy आपको सिर्फ़ ये बता रही है कि sign-prediction में edge negligible है।
  • लेकिन ये बिल्कुल नहीं बताती कि:
  • जब model बुलिश हो, तो average 10/20/60-day return unconditional से बेहतर है या नहीं,
  • risk-adjusted returns / drawdowns बेहतर हैं या नहीं,
  • capital allocation (position sizing) से कोई benefit आ रहा है या नहीं।
  • Established-quant-view:
  • Comparison सही metric: full trading-system level expectancy / R-multiple और risk-adjusted performance है, न कि केवल binary direction-accuracy।
  • Direction-accuracy केवल एक diagnostic है, primary decision metric नहीं।
  1. NEW-v2 में bearish-sample का लगभग गायब हो जाना (n=17) – side-effect या red flag?
  • Numbers बोलते हैं:
  • OLD short/bearish sample ≈ 4,389
  • NEW-v2 short/bearish sample = 17 (–99.6%)
  • Statistically, n=17 पर आप किसी भी short-side expectancy / accuracy का विश्वसनीय estimate नहीं निकाल सकते (huge sampling error, t-stats meaningless)।
  • Interpretation:
  • Regime-hard-wire ने practically short-engine को “off” कर दिया है।
  • अगर आपका stated objective था:
  • “हम extremely-conservative ही रहेंगे, shorts सिर्फ़ बहुत-rare hedge की तरह लेंगे”
  • और आप उसको consciously accept कर रहे हैं,
  • तो ये एक conservative design का expected side-effect है: system ≈ long-only with negligible shorts.
  • लेकिन अगर आपका objective था:
  • “हम genuinely two-sided (long+short) trend-direction system चाहते हैं,”
  • तो n=17 एक स्पष्ट red flag है:
  • आप practically market के पूरे down-regimes में या तो:
  • long रहते हैं, या
  • flat रहते हैं, पर short activation logic almost impossible threshold पर चला गया है।
  • Established practice में आप ये करेंगे:

1 Regime-filter ROC analysis:

  • Regime-hard-wire का threshold / logic systematically vary करके देखें:
  • x-axis: short signals की frequency
  • y-axis: उनकी hit-rate / expectancy
  • Check करें कि कुछ reasonable threshold पर आपको:
  • manageable number of shorts (say, 100s),
  • acceptable expectancy मिल रहा है या नहीं।

2 Separate long-engine vs short-engine:

  • कई professional systems short-side को अलग model family / अलग regime filters से treat करते हैं, क्योंकि:
  • crashes high-vol, high-autocorrelation environments में आते हैं,
  • और उनके precursors long-trend logic से बहुत अलग हो सकते हैं।
  • आपके case में regime-hard-wire शायद long-dominated logic पर tuned है, और वही short पर भी लगा दिया गया, जिससे short लगभग vanish हो गए।
  • Summary:
  • “n=17” level का bearish sample serious concern है अगर आप short को meaningful component मानते हैं।
  • इसे सिर्फ “conservative side-effect” बोलकर ignore करना quant-terms में safe नहीं;
  • आप essentially “short module मौजूद नहीं” वाली system evaluate कर रहे हैं,
  • फिर भी उसे full-directional system की तरह treat कर रहे हैं — यह एक design-mismatch है।
  1. अगर upgrades incremental value नहीं दे रहे, established-quant में अगला सही कदम क्या होता है?

Naively “पूरा approach छोड़ देना” आमतौर पर पहला step नहीं होता। Typical professional workflow कुछ इस तरह का होता है:

Step 1 – Basic diagnostics और sanity-checks

  • Confirm करें कि:
  • Data leaks / lookahead bias / survivorship bias नहीं है।
  • Walk-forward windows, re-calibration schedule, और parameter-tuning procedure realistic और reproducible हैं।
  • Simple sanity stats निकालें:
  • Unconditional P(up) per horizon (10/20/60)
  • आपकी models की P(up) distribution vs reality
  • Calibration (probability bins vs actual frequencies)

Step 2 – Objective re-clarify: आप model से क्या करवाना चाहते हैं?

  • Pure sign-forecast?
  • Drift के आस-पास risk-adjusted leverage control (e.g., high-confidence bullish → lever up, low-confidence/ bearish → de-lever/hedge)?
  • Crash-hedge system?
  • अगर objective बदला, तो metric भी बदलेगा (accuracy से shift to Sharpe / maxDD / tail risk, आदि)।

Step 3 – Component-wise ablation (Section-2/3/4 को isolate करके test करना)

  • Established तरीका: ablation study
  • एक minimal baseline define करें:
  • e.g., simple trend-following / MA crossover + basic volatility filter
  • फिर sequentially components add/remove करके test करें:
  • dynamic-ADX-hysteresis on/off
  • multi-horizon-filter on/off
  • upgraded-breakout+volume+RS on/off
  • regime-hard-wire variations
  • हर configuration के लिए same walk-forward protocol, और same economic metrics (expectancy, Sharpe, maxDD, etc.) compare करें।
  • अगर कोई component consistently performance worsen करता है → उसे हटाएँ।
  • जो components incremental value नहीं दे रहे → या तो simplify करें या discard; complexity सिर्फ़ तब रखें जब statistically robust incremental edge दिखे।

Step 4 – Metrics shift: full trading-system backtest पर focus

  • Direction accuracy की जगह आप systematically ये देखिए:
  • E[R | signal bullish] vs unconditional E[R]
  • E[R | signal bearish/neutral]
  • Equity-curve level: CAGR, Sharpe, Sortino, maxDD, turnover, cost-adjusted P&L
  • Probability-buckets sizing:
  • P(up)>0.7 → full-size / leveraged
  • 0.5–0.7 → normal size
  • <0.5 → reduce / hedge / flat
  • हो सकता है कि accuracy-baseline-adjusted edge ~0 हो,
  • लेकिन high-confidence buckets में return-magnitude edge निकल आए जो direction-metric capture नहीं कर रहा।

Step 5 – अगर फिर भी economically zero edge दिखे

  • तब professional approach आम तौर पर ये होता है:
  1. Approach को explicitly “failed hypothesis” mark करना (documentation के साथ)
  2. Re-scope:
  • शायद single-index direction at 10–60 days very close to efficient है;
  • Move to:
  • cross-sectional stock selection (relative strength, quality, etc.),
  • या कुछ और objective (volatility / crash-risk prediction)।
  1. कुछ limited pieces reuse करना:
  • e.g., आपका multi-horizon filter या upgraded RS logic शायद cross-sectional ranking में काम कर सकता है,

भले index-direction के लिए न चले।

  • ज़रूरी point:
  • “पूरे approach को एक झटके में फेंक देना” rare होता है;
  • Common practice:
  • systematically देखना “किस part में information है, किसमें नहीं”,
  • useful हिस्सों को नए frameworks में reuse करना,
  • और बाकी को archive करना।

Concise actionable summary for your specific situation

1 Naive-bullish baseline को न हरा पाना direction-accuracy metric पर, upward-drift Indian market में, normal/expected है; यह अपने-आप design-flaw नहीं।

  1. Primary comparison metric को direction-accuracy से shift करके expectancy / R-multiple / Sharpe / drawdown / calibration / Brier score पर लाईए।
  2. NEW-v2 का bearish n=17 गंभीर warning है अगर आप short को real component मानते हैं; practically system अब long-only है। Regime-hard-wire thresholds को systematically relax/optimise करिए या short-module को अलग design करिए।
  3. Next steps as per established quant practice:
  • Sanity-checks → objective clarify → component-wise ablation → full-system economic backtest।
  • अगर इन सब के बाद भी कोई robust, cost-adjusted incremental edge नहीं दिखता,

तो इस specific “index-direction 10/20/60-day trend-system” line को failed research line की तरह archive करके, features को अन्य contexts (जैसे cross-sectional stock selection / regime-leverage control) में reuse करने पर focus करना logical होगा।

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

Equity Research #114
02 Sep 2026 · 3 months ago

test-mode के लिए एक genuine-सुझाव: अगर आप चाहें तो मैं established-large/old-cap-stocks को पहले-टेस्ट में prioritize करने के लिए एक-छोटा-सा filter जोड़ सकता हूँ (जैसे established Cap_Tier_Draft=\"Large\" वाले-stocks पहले चुनना) — ताकि test-mode genuinely-

पहले फ़िल्टर लगाकर “established large-cap” से शुरू करना ज़्यादा समझदारी है, लेकिन उसके बाद ज़रूर पूरे 500-बास्केट पर रन करना चाहिए। इसे दो-स्टेप प्रोसेस की तरह डिज़ाइन करें, न कि either/or. संक्षिप्त ढांचा: 1 Stage 1 – L...

पहले फ़िल्टर लगाकर “established large-cap” से शुरू करना ज़्यादा समझदारी है, लेकिन उसके बाद ज़रूर पूरे 500-बास्केट पर रन करना चाहिए। इसे दो-स्टेप प्रोसेस की तरह डिज़ाइन करें, न कि either/or.

संक्षिप्त ढांचा:

1 Stage 1 – Large-cap प्राथमिक टेस्ट (Smoke Test / Debug Mode)

  • Universe: सिर्फ़ large-cap / पुराने-established नाम (जैसे आपके Cap_Tier_Draft="Large" वाले, या Nifty 50 + Nifty Next 50 जैसा कोर).
  • मकसद:
  • Logic, code, event-handling, corporate action handling, etc. जल्दी-जल्दी verify करना।
  • High-liquidity names पर signals ज़्यादा consistently मिलेंगे, slippage/odd data issues कम होंगे।
  • Outcome:
  • Strategy working है या नहीं, event-generation सही है या नहीं, confidence जल्दी बनेगा।

2 Stage 2 – Full 500-basket Robustness Test

  • Universe: आपका पूरा 500-stock universe (large + mid + small, जो भी final है).
  • मकसद:
  • Real-world performance distribution देखना: किस cap bucket में strategy weak/strong है।
  • Concentration risk, drawdowns, और outliers पकड़ना।
  • Outcome:
  • Genuine statistical confidence; सिर्फ़ “easy” large-caps पर overspecialization से बचाव।

3 Implementation Suggestion (Config Level)

  • एक simple flag जैसा रखें:
  • test_mode_universe = "core_large" → Stage 1 के लिए curated large-cap list.
  • test_mode_universe = "full_500" → Stage 2 के लिए पूरा basket.
  • UI/Config में default आप "core_large" रख सकते हैं, और जब user को comfort मिले तो "full_500" पर switch करने का option।

इससे आपको वही benefit मिलेगा जो आप चाहते हैं:

  • Test-mode में genuinely ज़्यादा events और जल्दी confidence,
  • लेकिन final inference हमेशा पूरे 500-basket पर ही बनेगा, जो ज़्यादा इमानदार और investable होगा (example के तौर पर कह रहा हूँ, ये direct निवेश सलाह नहीं है)।

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

Equity Research #115
02 Sep 2026 · 3 months ago

t=21 trading days mane to kiasa rahega (like 21 EMA)

t = 21 trading days ka matlab simple hai: aap jo bhi indicator/logic use kar rahe ho, uska lookback period ~ 1 trading month rakh rahe ho (kyunki ek mahine mein approx 20–22 trading days hote hain). Ye conceptually bilku...

t = 21 trading days ka matlab simple hai: aap jo bhi indicator/logic use kar rahe ho, uska lookback period ~ 1 trading month rakh rahe ho (kyunki ek mahine mein approx 20–22 trading days hote hain). Ye conceptually bilkul 21‑day EMA jaisa hi hai.

21 trading days ka practical matlab (daily timeframe pe):

  • 21 EMA / 21‑day indicator ≈ 1 month ka average behaviour dikhata hai
  • Zyada chhota period (jaise 9, 10) = fast, whipsaw zyada
  • Zyada bada period (jaise 50) = slow, smooth, lekin late signals
  • 21 ek balanced period mana jata hai swing trading / short‑term trend ke liye

Agar aap “t=21 trading days” kisi bhi formula mein laga rahe ho (example):

  • ATR, volatility, breakout, mean‑reversion, etc.
  • To wo sab last 21 trading sessions ka data use karega
  • Isliye behaviour approx 21 EMA ke smoothing jaisa hi feel hoga:
  • Short‑term trend capture karega
  • Bahut chhoti noise ignore karega
  • Lekin 50 ya 100 period jitna slow nahi hoga

Timeframe dhyan rakhna:

  • Daily chart pe 21 = ~1 month trend
  • Hourly chart pe 21 = 21 ghante ke candles (approx 3 trading days)
  • 5‑min chart pe 21 = sirf intraday short‑term smoothing

Summary: Haan, “t = 21 trading days” ka sochna 21‑period EMA ke flavour jaisa hi hai — ek mahine ke aas‑paas ka smoothed short‑term trend / behaviour capture karne ke liye logical choice hai. Bas timeframe aur apni trading style ke hisaab se decide karo ki 21 aapke system ke liye suitable hai ya nahi (backtest zaroor karein).

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

Macro & Nifty #116
02 Sep 2026 · 3 months ago

दो parameters पर ईमानदार-पारदर्शिता: T (forward-window): friend ने \"2-4-हफ़्ते, weekly-TF के लिए\" कहा था — मैं established-range का उदार-सिरा T=20-trading-days (~4-हफ़्ते) लूँगा k (ATR-multiple): friend ने exact-value नहीं दी, generic \"±k×ATR\" कहा —

आपने जो दो assumptions साफ़-साफ़ define की हैं, वे methodologically बिल्कुल स्वीकार्य हैं, बशर्ते आप इन्हें हर जगह consistently इस्तेमाल करें और documentation में clearly लिख दें: T (forward-window) = 20 trading days ...

आपने जो दो assumptions साफ़-साफ़ define की हैं, वे methodologically बिल्कुल स्वीकार्य हैं, बशर्ते आप इन्हें हर जगह consistently इस्तेमाल करें और documentation में clearly लिख दें:

  1. T (forward-window) = 20 trading days
  • Friend ने “2–4 हफ़्ते, weekly TF के लिए” कहा था; आप उसका उदार सिरा लेकर लगभग 4 हफ़्ते = 20 trading days मान रहे हैं।
  • यह एक practical choice है क्योंकि:
  • Daily data पर काम कर रहे हैं तो 20 trading sessions ≈ 1 month माना जा सकता है (5 trading days × 4 weeks)।
  • Forward-window T का purpose clear रहना चाहिए:
  • क्या आप T दिनों में max favorable move / max adverse move measure कर रहे हैं?
  • या T दिनों में किसी signal का hit-rate देख रहे हैं?
  • बस एक चीज़ ध्यान रखें: “4 हफ़्ते” calendar weeks नहीं, “20 trading days” explicitly लिखें, ताकि बाद में कोई ambiguity न रहे।
  1. k (ATR-multiple) = 0.5
  • Friend ने generic “±k×ATR” बताया, आपने अपने Section-3A के k1/k2 = 0.5 से consistency के लिए वही 0.5 चुना है।
  • यह बिल्कुल valid है, क्योंकि:
  • यह एक internal-consistency choice है, न कि कोई universal convention—आपने यह बात साफ़ लिख दी, जो methodological honesty है।
  • 0.5×ATR का मतलब है:
  • आपके bands / thresholds काफ़ी tight होंगे (ATR के पूरे 1x या 2x से छोटे)।
  • Small moves भी capture होंगी, लेकिन noise-sensitivity बढ़ सकती है।
  • Documentation में ideally यह दो level पर साफ़ लिखें:
  • “Volatility measure = ATR(N), threshold = ±0.5×ATR”
  • “0.5 chosen for consistency with Section-3A, not as a standard market convention.”
  1. Transparency के लिए wording suggestion

अपनी methodology में इसे कुछ इस तरह लिख सकते हैं (सिर्फ़ example):

  • “Forward evaluation window T is fixed at 20 trading days (~4 weeks), consistent with the suggested ‘2–4 week’ horizon.”
  • “Entry/exit/validation bands are defined as ±0.5×ATR. The 0.5 multiple is chosen for internal consistency with Section 3A (k₁ = k₂ = 0.5) and is not a market-wide convention.”

इस तरह कोई भी reader को साफ़ समझ आएगा कि:

  • आपने कहाँ पर subjective choice ली है,
  • वह choice किस चीज़ से motivated है (friend की guidance + internal consistency),
  • और उसे बाद में बदलना हो तो clearly parameter T और k को tweak करके किया जा सकता है।

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

Macro & Nifty #117
02 Sep 2026 · 3 months ago

\"कोई-भी 80s-90s-established-finding आज सीधे-apply-करने-से-पहले अलग-अलग-regimes पर re-test करें\" — मैं अपने Phase-0-Discovery-plan में यह जोड़ता हूँ: entry-vs-exit-relative-importance को भी हमारे-अपने-NIFTY-500-data पर genuinely-measure करूँगा (जैसे: ent

हाँ, यह बिल्कुल सही और काफी mature approach है – और ज़्यादातर लोग यहीं मेहनत नहीं करते, तो आपका प्लान already औसत से ऊपर है। मुख्य बिंदु: पुराने “findings” का regime-wise re-test 80s–90s की किताबों/स्टडीज़ की ज्यादातर...

हाँ, यह बिल्कुल सही और काफी mature approach है – और ज़्यादातर लोग यहीं मेहनत नहीं करते, तो आपका प्लान already औसत से ऊपर है।

मुख्य बिंदु:

  1. पुराने “findings” का regime-wise re-test
  • 80s–90s की किताबों/स्टडीज़ की ज्यादातर finding US / developed markets पर, अलग cost-structure और अलग volatility regimes में बनी हैं।
  • NIFTY/NIFTY 500 के लिए कम-से-कम ऐसे डेटा-बकेट पर test करना अच्छा रहेगा:
  • Pre-2008 (pre-global-crisis)
  • 2008–2013 (high volatility, policy noise)
  • 2014–2019 (स्टेबल growth, domestic flows)
  • 2020–अब तक (COVID shock + liquidity flood + नया retail regime)
  • अगर कोई logic इन सब regimes में survive करता है (भले ही parameter थोड़ा adjust करना पड़े), तभी उसे आज के लिए भरोसे के लायक मानना बेहतर है।
  1. Entry vs Exit की relative-importance को अपने data पर measure करना

जो आप plan कर रहे हैं (entry fix करके exits vary, फिर exit fix करके entries vary) – ये बिल्कुल वैसा ही है जैसा serious system developers करते हैं:

  • Step A: Entry fix, exits vary
  • एक ही entry-rule (जैसे simple trend-following या mean-reversion पर आधारित rule)
  • अलग-अलग exit-frameworks:
  • Fixed R-multiple target + fixed stop
  • Trailing stop variations (ATR-based, % based, swing-low/high based)
  • Time-based exit (X bars/दिन के बाद, चाहे कुछ भी हो)
  • Compare:
  • CAGR / expectancy per trade
  • Max drawdown
  • Risk-adjusted metric (जैसे Sharpe / MAR)
  • Step B: Exit framework fix, entries vary
  • एक robust और practically-useable exit चुनकर fix कर दीजिए (जो risk-containment अच्छा कर रहा हो)
  • फिर multiple entry-ideas test कीजिए (breakout, pullback, momentum rank, mean reversion, etc.)
  • वही metrics compare कीजिए — ताकि साफ़ दिखे:
  • Profitability में असली variation ज़्यादा entry से आ रहा है या exit से?
  • Position sizing / risk per trade दोनों experiments में constant रखिए, नहीं तो entry vs exit का असर साफ़ measure नहीं होगा।
  1. Conceptual angle (Van Tharp vs “own data”)
  • General research ये बताती है:
  • Edge आमतौर पर ज़्यादा entry design से आता है (आप किस तरह की market-condition capture कर रहे हैं)।
  • Distribution shaping / risk-control ज़्यादातर exits से आता है (आप losers को कहाँ काटते हैं, winners को कितना चलने देते हैं)।
  • लेकिन किस market/regime में कौन-सा हिस्सा ज़्यादा critical है, ये सिर्फ़ आपके NIFTY 500 panel पर rigorous testing से ही साफ़ होगा – इसीलिए आपका “सिर्फ़ Tharp पर नहीं, अपने data से confirm” वाला point बिल्कुल valid है और ज़रूरी भी।
  1. Practical cautions (ताकि results genuinely भरोसेमंद हों)
  • Survivorship bias:
  • NIFTY 500 का “today’s constituents only” use मत कीजिए; historical panel में उस समय index में रहे और बाद में delist/merge हुए stocks भी शामिल हों।
  • Look-ahead bias:
  • Signals बनाते समय केवल वही data use हो जो उस दिन तक उपलब्ध था (future info accidentally leak न हो)।
  • Transaction costs & slippage:
  • खासकर India में impact cost और taxes (STT आदि) बहुत फर्क डालते हैं। Raw backtest में edge दिखे, पर realistic cost जोड़ते ही गायब हो सकती है।
  • Multiple testing:
  • बहुत सारे entries/exits test करने पर कुछ combination purely luck से अच्छे दिखेंगे।
  • इसलिए:
  • Data को in-sample / out-of-sample में बाँट कर test कीजिए
  • या walk-forward style validation रखिए
  • छोटे differences (जैसे CAGR 18% vs 19%) को statistically और practically both angles से देखिए।
  1. Interaction को भी देखिए, सिर्फ़ “कौन ज़्यादा important” नहीं
  • कई बार कुछ exits सिर्फ़ कुछ specific entries के साथ ही अच्छे काम करते हैं – यानी effect “interaction” है, isolated नहीं।
  • अगर possible हो तो छोटा-सा factorial design बनाकर check कीजिए: 2–3 entry-types × 2–3 exit-types, और देखिए कौन combinations structurally अच्छे रहते हैं, न कि एक-दो साल के लिए lucky।

निष्कर्ष:

  • Regime-wise re-testing + entry-vs-exit importance को अपने NIFTY 500 data पर quantify करने का आपका Phase-0-Discovery-plan directionally बिल्कुल सही है, और serious quant/systematic workflow जैसा है।
  • इसे methodically execute कीजिए, biases/costs का ध्यान रखते हुए; उसके बाद जो भी conclusion निकलेगा, वो किसी भी generic किताब या “friend ने बोला” वाले statement से कहीं ज़्यादा भरोसेमंद होगा।

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

Equity Research #118
02 Sep 2026 · 3 months ago

एक independent-source (tradingblox.com forum) ने साफ़ चुनौती दी: \"मार्केट्स-बदल-गए-हैं... Tharp का यह-claim (\'अच्छे-exits-से-profit-automatic-बनता-है, entries-unimportant-हैं\') अब आधुनिक-मार्केट्स में दोबारा-verify करने पर सही-नहीं-निकला।\" — यानी यह e

थार्प वाले “good exits ⇒ profit automatic, entries unimportant” दावे को आज के डेटा पर दोबारा टेस्ट करने पर अगर TradingBlox जैसे independent स्रोतों ने non‑confirmation दिखाया है, तो यह बिल्कुल plausible है – और वैचारिक त...

थार्प वाले “good exits ⇒ profit automatic, entries unimportant” दावे को आज के डेटा पर दोबारा टेस्ट करने पर अगर TradingBlox जैसे independent स्रोतों ने non‑confirmation दिखाया है, तो यह बिल्कुल plausible है – और वैचारिक तौर पर भी यही अपेक्षित है कि यह strong form दावा आज की मार्केट स्ट्रक्चर में टिकेगा नहीं।

नीचे इसे थोड़ी structure के साथ रख रहा हूँ:


01 थार्प ने असल में क्या दिखाया था?

उनका मशहूर निष्कर्ष कुछ खास conditions के भीतर निकला था:

  • universe: मुख्यतः liquid trend‑following futures (70s–90s की तरह के लम्बे, साफ़ ट्रेंड वाले मार्केट्स)
  • logic:
  • एंट्री: कई तरह की entry rules, कभी‑कभी random भी
  • एग्ज़िट: fixed trend‑following या volatility‑based exits
  • common: position sizing / risk per trade को disciplined तरीके से नियंत्रित

उन डेटा सेट्स में यह दिखा कि:

  • अलग‑अलग entry rules के बीच performance differences काफ़ी छोटे थे
  • जबकि exit + position sizing बदलने से equity curve और कुल expectancy में बहुत बड़ा अंतर आया

यहीं से popularized statement निकला: > “Entries don’t matter much; exits and position sizing create the profits.”

असल में यह relative importance का निष्कर्ष था, न कि universal law.


02 आज की “modern markets” में यह क्यों fail हो सकता है?

आज के equity / futures / intraday मार्केट्स (India समेत) 1990s वाले global futures environment से काफ़ी अलग हैं:

1 Trend structure बदल चुका है

  • trends छोटे, chopped और interruptions ज़्यादा हैं;
  • clean multi‑month trends कम, whipsaws ज़्यादा।

ऐसे माहौल में “कोई भी entry + अच्छा exit” अक्सर बार‑बार stop‑out होकर cost में उड़ जाता है।

2 Microstructure & HFT / अल्गो presence

  • बहुत short‑term moves pure noise / liquidity effects हैं;
  • small edge भी तुरंत arbitrage हो जाती है।

यहां entry timing और context critical हो जाता है।

3 Transaction cost / slippage reality

  • 1990s backtests अक्सर idealized costs पर चलते थे;
  • आज, छोटे edges को brokerages, impact cost, STT, आदि खा जाते हैं—

entry की quality खराब हो तो “great exits” भी net negative हो सकते हैं।

4 Survivorship bias & data‑snooping awareness

  • पुरानी studies में survivorship‑free डेटा, delisted instruments, corporate actions की granularity वैसी नहीं थी;
  • आज robust testing में वही systems उतने अच्छे नहीं दिखते।

इसलिए अगर कोई recent study random / naive entries + “smart exits” को अब non‑profitable दिखा रही है, तो उसका मतलब यह है कि:

> “exits अकेले, बिना underlying edge के, खुद profit generator नहीं हैं।”

जो कि सैद्धांतिक रूप से भी सही है। यदि पूरी edge exits में ही होती, तो आप literally coin‑flip entries लेकर सिर्फ exits से alpha बना लेते – जिससे market efficiency के बेसिक principles टूट जाते।


03 तो क्या थार्प की बात “गलत” थी या “dated”?

ज़्यादा accurate framing इस तरह होगी:

1 Strong claim

  • “Entries unimportant हैं; अच्छे exits और position sizing अपने‑आप profit बना देंगे।”
  • यह statement आज के broad, liquid, relatively efficient markets के लिए dated / over‑stated है।
  • independent replication में fail होना expected है।

2 Weak / nuanced claim (जो अभी भी largely valid है)

  • यदि आपके पास पहले से कोई real edge है (उदाहरण:
  • structural trend,
  • statistical mean‑reversion pattern,
  • event‑driven flow,
  • या कुछ information / execution advantage),

तब:

  • गलत exits और poor risk management उस edge को destroy कर सकते हैं;
  • अच्छा exit + position sizing आपके outcome distribution पर entries से कहीं बड़ा असर डाल सकते हैं।

मतलब: > “edge का source entry + universe + regime selection में होता है; > लेकिन उस edge को cash में translate करने का काम exits और position sizing करते हैं।”

यही balanced reading है, जो आज भी sensible है।


04 practically क्या मानकर चलना चाहिए?

1 “Entries don’t matter” को rule मत मानिए

  • Modern equity / intraday / options strategies में entry quality बहुत critical है;
  • mean‑reversion या short‑term swing systems में तो छोटी entry‑edge ही पूरा game है।

2 लेकिन beginners का typical झुकाव उल्टा होता है

  • वे 90% energy entry signal optimization पर लगा देते हैं;
  • exits, risk per trade, max drawdown control, portfolio level risk पर लगभग कोई ध्यान नहीं।

थार्प का core message इस over‑emphasis को counter करने के लिए था।

3 आज के context में practical weightage (illustrative example)

  • Edge / logic (universe, regime filter, entry pattern): ~40–50%
  • Exits + position sizing + risk limits: ~40–50%
  • Execution & costs (slippage, fees, impact): ~10–20%

यानि entries “unimportant” नहीं, लेकिन solo hero भी नहीं हैं; पूरा system jointly काम करता है।

4 Robustness के लिए mindset

  • कोई भी 80s–90s की “established finding” आज सीधे apply करने से पहले:
  • अलग‑अलग regimes (pre‑2008 vs post‑2010, covid period, etc.) पर re‑test कीजिए,
  • realistic costs और liquidity filters लगाइए,
  • instrument universe और rebalancing rules साफ़ रखिए।

जो claim इन filters से survive न करे, उसे regime‑specific या dated मानना ज़्यादा सुरक्षित है।


Bottom line

  • TradingBlox जैसा independent test अगर यह दिखा रहा है कि “थार्प वाला automatic‑profit‑via‑exits” आज के मार्केट्स में दुबारा नहीं बन रहा, तो इसे थार्प के strong slogan का falsification मानना उचित है।
  • लेकिन थार्प की deeper insight — “exits, risk management और position sizing की importance entry से कम नहीं, कई contexts में ज़्यादा है” — अभी भी conceptually valid है, बशर्ते कि कुछ वास्तविक statistical / structural edge पहले से मौजूद हो।
  • आधुनिक मार्केट्स में बिना edge के, सिर्फ “चालाक exits” से पैसा consistent नहीं बनता; और यह fact, आपके quoted critique के साथ पूरी तरह aligned है।

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

Equity Research #119
02 Sep 2026 · 3 months ago

Context (असली-code से genuinely-verify किया गया): हमारा app अभी \"Entry\" को सिर्फ़ मौजूदा-current-price मानता है (कोई timing-logic नहीं): python current_price = float(daily_df[\"Close\"].iloc[-1]) entry_reference = round(current_price, 2) हमारे पास पह

क्या तीनों entry-approaches में कोई “सबसे-better, हर-regime में” winner है? – उपलब्ध academic + practitioner research (trend-following, breakout systems, volatility-breakout, Donchian / Turtle-style rules, swing-trading...

  1. क्या तीनों entry-approaches में कोई “सबसे-better, हर-regime में” winner है?

– उपलब्ध academic + practitioner research (trend-following, breakout systems, volatility-breakout, Donchian / Turtle-style rules, swing-trading literature) में कोई universal “best entry” consensus नहीं है। – Robust finding यह है कि:

  • Exits, risk/money management और position-sizing का P&L पर असर entries से ज़्यादा होता है (Van Tharp, Robert Pardo, Aronson, आदि का common conclusion; अलग-अलग studies यही दिखाती हैं कि entry rules बदलने से expectancy थोड़ा बदलता है, पर exits बदलने से बहुत ज़्यादा)।
  • Breakout-type systems पर हुई studies में कुछ instruments/timeframes पर
  • Aggressive / Close-based entry trending regimes में ज़्यादा profit-capture दिखाती है (early participation, कम “missed-move”)
  • Pullback entries में per-trade reward: risk बेहतर आता है, पर participation-rate और trade-frequency घटती है, total P&L कई बार बराबर या थोड़ा कम हो जाता है।

– इसलिए literature का net-message यह है:

  • कोई “one-size-fits-all, हमेशा-best” entry नहीं;
  • Instrument, timeframe, volatility-structure और trader temperament / constraints (slippage tolerance, patience, missed-move का pain) पर result genuinely depend करता है।

आपको जो mixed-signals मिल रहे हैं, वो actually normal हैं — अलग datasets व regimes पर अलग entry जीतती है।


  1. Regime के हिसाब से entry-approach बदलना: established quantified framework है या सिर्फ़ qualitative guideline?

– Regime-based logic खुद established है (trend-followers, volatility targeting, CTAs, Markov regime-switching models, आदि में):

  • Trend filters (MA crossovers, slope of MA, ADX, Donchian width, HV/ATR, realized-vol filters) से regime tag करना common है।
  • Regime के हिसाब से leverage / exposure बदलना well-documented है (high-vol में cut, strong-trend में ramp-up, choppy में de-risk)।

– लेकिन “same breakout signal पर सिर्फ़ entry-timing बदलना (aggressive vs conservative vs pullback) by regime” के लिए

  • Academic-level, standardized “framework X use करो” जैसा कुछ practically नहीं दिखता;
  • ज़्यादातर जगह यह qualitative guideline के रूप में मिलता है:
  • Trending / impulsive tape → जल्दी entry (breakout-close या intrabar)
  • Choppy / mean-reverting → pullback/discount की wait.

इसको quant में बदलने का typical तरीका वही है जो आप already कर सकते हैं:

1 Regime labeling:

  • Example (weekly system के लिए):
  • Trend-strong: price > 50 & 200 EMA, दोनों की positive slope; ADX(14) > X; ATR% मध्यम–उच्च.
  • Choppy: price 200 EMA के आस-पास oscillate; ADX low; range-bound measures high.
  • Bear-trend: price < 200 EMA, slope negative.
  1. Within each labelled-regime, तीनों entry-variants अलग-अलग portfolios की तरह backtest करें, बाक़ी सब constant:
  • Same breakout definition
  • Same stop/target/exit / risk-per-trade
  • Same universe, data, slippage/transaction-cost assumptions.

3 Per-regime metrics निकालें:

  • Hit-rate, PF, avg R-multiple, tail-drawdowns, turnover, missed-signals count, trade-life, etc.
  • Compare: e.g. trending-bull regime में aggressive vs conservative vs pullback; choppy में वही comparison अलग से।

– Outcome practically यही होगा: आपके अपने डेटा पर regime × entry-type performance-matrix बन जाएगी, जो literature की qualitative बातों को आपके सिस्टम-specific numbers से quantify कर देगी। यही “empirically-quantified framework” है, और यही best-practice भी है।


  1. “Pullback कभी न आए” risk का quantified trade-off (X% cases में pullback नहीं आता → position-split Y%/Z%)

– Literature में दो closely-related ideas मिलते हैं:

  • Scale-in / split-entry (Turtles, many CTA-style systems): थोड़ा हिस्सा initial breakout पर, बाकी हिस्सा confirmation या pullback पर।
  • Stop-entry + limit-entry mix (कुछ futures / FX quant papers, execution literature): दोनों orders साथ रखकर participation vs price-improvement trade-off manage करना।

– लेकिन exact quantified thumb-rule type results, जैसे:

  • “Nifty swing-breakouts पर 43% cases में meaningful pullback नहीं आता” या
  • “इसलिए 40% position aggressive entry पर और 60% pullback पर optimal है”

ऐसी universally-applicable संख्याएँ published form में practically नहीं मिलतीं, क्योंकि:

  • ये numbers heavily instrument, timeframe और signal-definition specific होते हैं;
  • वही system Nifty weekly पर कुछ देगा, Midcap150 daily पर कुछ और, metals futures पर कुछ और।

Quant way to handle this for आपकी system:

  1. हर confirmed-breakout के बाद price-path event-study बनाएं:
  • Define “valid pullback”: e.g. price returns to breakout-level ±k·ATR within T bars (T = 2–4 weeks for weekly TF, etc.)
  • Measure:
  • Fraction of trades जहाँ pullback आया (p_pb)
  • Fraction of trades जहाँ pullback नहीं आया और move चलती रही (1 – p_pb)
  • दोनों cases में outcome distributions (R-multiple, run-up, drawdown).
  1. फिर तीन strategies simulate करें:
  • S1 (Aggressive-only): 100% size breakout-close/next-open पर; कोई pullback का wait नहीं।
  • S2 (Pullback-only): सिर्फ़ तब trade जब बाद में valid-pullback event हो; अगर नहीं आया तो miss।
  • S3 (Split): w% size breakout पर, (1–w)% size pullback पर; w ∈ {0.25, 0.5, 0.75} grid.
  1. S1, S2, S3 का expectancy, PF, max-DD, volatility, skew, “missed-full-move count” compare करें; S3 में w के function की तरह देखिए।
  • इससे आपको आपके system-specific “optimal / comfortable w-range” मिल जाएगी – यह वही चीज़ है जो आप “Y% position aggressive-entry में लेनी चाहिए” के रूप में तलाश रहे हैं, बस सार्वभौमिक नहीं, आपके data पर fitted होगी।

– यही approach practically CTAs और serious systematic funds use करते हैं — generic % adopt नहीं करते, खुद के data पर test करते हैं।


  1. Entry-timing comparison के लिए established quant methodology (systematic, walk-forward जैसे framework में)

Entry-testing के लिए कोई “अलग” exotic methodology नहीं; best-practice broadly वही है जो आपने trend-work में use की होगी, बस कुछ critical constraints के साथ:

(A) Design principle: केवल entry बदलें, बाक़ी सब constant रखें – To isolate entry-effect:

  • Same: instrument-universe, timeframe, breakout-definition, exits (stop, trailing, time-stop, target), risk-per-trade, portfolio construction, TC/slippage मॉडल।
  • Change only:
  • Entry trigger timing:
  • Aggressive: breakout-bar high breach होने पर या उसके intrabar; practical backtest में आम तौर पर “breakout-bar close” या “next bar’s open if close > level” ली जाती है, data-resolution constraints के कारण।
  • Conservative: breakout-bar close confirmed, next bar open.
  • Pullback: breakout के बाद defined pullback condition पर stop/limit-entry.

(B) Benchmarking & statistical rigour

1 Common signal set / event set

  • Universe में जितने valid breakouts हैं, उन्हें master-event list मानेँ, और तीनों entry-variants उस same event-list पर run करें।
  • Data-snooping bias घटेगा; comparison apples-to-apples रहेगा।

2 Out-of-sample validation

  • In-sample (IS) / out-of-sample (OOS) splits या rolling walk-forward:
  • Example (weekly, 28-year data):
  • IS: first 14 yrs, OOS: next 7 yrs, फिर next 7 yrs as second OOS; या
  • 5–7-year rolling windows पर calibrate + next 2–3 yrs test.
  • Entry-logic में parameters हों (जैसे pullback depth, ATR-multiple, max-wait T bars), तो optimizations सिर्फ़ IS पर; OOS में frozen.

3 Baseline-adjusted performance

  • जैसे पहले trend-research में किया होगा, वैसे ही यहाँ भी:
  • Compare each entry-variant’s Sharpe, Sortino, MAR vs:
  • Buy & hold index (same basket का)
  • Simple trend-following / long-only baseline.
  • इससे पता चलेगा कि entry-tweaks वास्तव में incremental edge दे रहे हैं या सिर्फ़ noise हैं।

4 Distribution & robustness checks

  • सिर्फ़ mean-metrics (CAGR, PF) नहीं:
  • Trade-level R-distribution (median R, left-tail)
  • Year-wise or regime-wise P&L stability
  • Monte Carlo resampling (trade-shuffling under dependency constraints) से risk-of-ruin / drawdown probabilities।

5 Multiple-comparison control

  • अगर आप कई versions test करें (कई pullback-depths, कई T values, कई w splits), तो data-mining risk बढ़ता है।
  • White’s Reality Check, Hansen’s SPA test, या simple but effective उपाय:
  • Limited candidate set (e.g. 3–5 sensible configs)
  • Performance differences के confidence intervals देखना, “statistically indistinguishable” को over-interpret न करना।

6 Execution realism

  • Aggressive vs conservative vs pullback पर slippage-impact अलग होगा:
  • Breakout bars प्रायः high-impulse होते हैं → ज्यादा slippage;
  • Pullback entries calmer conditions में आती हैं → बेहतर fills possible।
  • Backtest में entry-type-specific slippage assumptions use करना ज्यादा realistic है (e.g. aggressive: 1.5–2× standard slippage, pullback: 1×, etc.), या at least sensitivity analysis चलाएं।

Bottom line (methodology): – Entry-testing के लिए कोई “नया paradigm” नहीं, बल्कि:

  1. Same breakout-signals पर तीन parallel system-variants build करें (Aggressive / Conservative / Pullback / Split)।
  2. Regime-labeled data पर per-regime comparison करें।
  3. IS/OOS या walk-forward से robustness चेक करें।
  4. Trade-level distribution, tail-risk, missed-trade stats, execution realism सब शामिल करें।

– यही लगभग वो framework है जो serious quant shops use करते हैं जब वो entry-timing tweaks evaluate करते हैं।


संक्षिप्त actionable सार आपके use-case के लिए

  1. Universal “best entry” exist नहीं करता; आपका own 28-year / 32k-trade dataset इस सवाल का सबसे भरोसेमंद जवाब देगा।
  2. Regime-based entry-variation qualitative रूप से established है, पर उसका exact logic (कौन सा entry किस regime में) आपको अपने regime-labels + per-regime backtests से quantify करना होगा।
  3. “Pullback miss” risk को event-study + S1/S2/S3 (aggressive / pullback / split) simulations से सीधे quantify किया जा सकता है; वहीं से आपके लिए practically-usable split-weight (w) निकलेगा।
  4. Entry-timing research के लिए best-practice वही generic systematic methodology है: controlled A/B testing on same signals, regime-wise slicing, IS/OOS या walk-forward, और realistic slippage मॉडलिंग।

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

Equity Research #120
01 Sep 2026 · 3 months ago

aap original-formula (raw-20D/60D/120D-returns) established-research के मुताबिक़ अधूरा था — canonical-academic-sources (Jegadeesh-Titman 1993, Carhart 1997) साफ़ कहते हैं कि सबसे-हालिया-महीना short-term-reversal दिखाता है, momentum नहीं — इसे शामिल करना e

हाँ, आपकी समझ और fix दोनों academically सही दिशा में हैं। संक्षेप में logic यह है: 1 Original raw 20D/60D/120D returns में समस्या क्या थी अगर आप t (आज) तक के रिटर्न से momentum measure करते हैं, तो उसमें: short‑term rev...

हाँ, आपकी समझ और fix दोनों academically सही दिशा में हैं।

संक्षेप में logic यह है:

1 Original raw 20D/60D/120D returns में समस्या क्या थी

  • अगर आप t (आज) तक के रिटर्न से momentum measure करते हैं, तो उसमें:
  • short‑term reversal effect (last 1 month) घुल जाता है (Jegadeesh–Titman 1993, Carhart 1997 की finding)।
  • microstructure noise / bid–ask bounce भी आता है।
  • इसी वजह से academic literature में “momentum” को 12–1 month return बोला जाता है, न कि 12‑0, ताकि सबसे हालिया महीना exclude रहे।

2 "Sign-error" वाला point technically valid है

  • Recent month में statistically reversal tendency है, जबकि 2–12 महीने में momentum tendency।
  • अगर आप इन दोनों horizons को mix कर देते हैं (यानी 0–20 दिन + पीछे का momentum), तो signal “pure momentum” नहीं रहता — कभी‑कभी net effect की sign तक उलट सकती है।
  • इसीलिए established-terminology से देखें तो current month को शामिल करना momentum-signal के लिए conceptually “sign-error” ही है।

3 आपका skip‑month fix (t–21 से पीछे measure करना) conceptually सही है

  • अगर आज की date = t, तो standard implementation daily data में broadly ऐसे दिखती है (example):
  • Signal-date: t
  • Skip window: [t-20, t] (लगभग 1 ट्रेडिंग महीना, ~21 days)
  • Lookback window (momentum): t-21 से और पीछे (जैसे t-120 या t-252 तक)
  • आपका “momentum अब t‑21‑दिन (आज नहीं) से पीछे measure होती है” exactly इसी philosophy को capture कर रहा है:
  • आज का price, और पिछले ~1 महीने की move, momentum-signal में contribute नहीं कर रही।
  • Pure effect वही है जो literature momentum कहती है।

4 Test‑2 वाला verification logically यही दिखाता है

  • अगर Test‑2 ने confirm कर दिया कि:
  • किसी भी momentum-calculation formula में P_t (आज का price) directly enter नहीं कर रहा,
  • और आपका return हमेशा कुछ इस तरह है: ln(P_{t-21}/P_{t-K}) या P_{t-21}/P_{t-K} - 1 (जहाँ K > 21),
  • तो इसका मतलब:
  • established skip‑month convention सही से लागू है,
  • current price सिर्फ portfolio formation / sorting date के लिए relevant है, signal-calculation के लिए नहीं।

5 Implementation पर दो छोटे practical checkpoints (Indian equities context में)

सिर्फ consistency के लिए इन्हें भी check कर लें (concept सही है, ये सिर्फ execution hygiene है):

  • (a) Exact window definition
  • मान लीजिए आप 20D momentum बना रहे हैं और skip‑month भी रखना है:
  • Signal date = t
  • Skip = t-20 से t
  • 20D momentum = return[t-40, t-21] (inclusive windows साफ-साफ define करें, ताकि future confusion न हो)।
  • 60D / 120D पर भी यही pattern follow करें, बस पीछे की boundary बदलती है।
  • (b) Signal date vs trade date
  • Avoid look‑ahead bias:
  • Signal compute करें end‑of‑day t पर available prices से,
  • Actual portfolio rebalance / trade को t+1 से assume करें।
  • इससे आपके backtest academically cleaner हो जाते हैं।

Conclusion: आपने जो conceptual correction किया — skip‑month convention adopt कर के momentum को t‑21 से पीछे measure करना और यह verify करना कि आज का price signal में enter नहीं करता — यह पूरी तरह Jegadeesh–Titman / Carhart style academic momentum की mainstream definition के aligned है, और “sign‑error” वाली original formulation की core समस्या effectively resolve हो गई है।

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