Skip to content
✎ FeedbackNew here?
Open the Screener →the live surface this page describes — data, filters and history
How well testedDescriptive onlyit describes what happened; it has never earned the right to rank or selectRecorded: DEPLOYED analytical lens (PIT quality score; not run as standalone alpha)

patearn — 14-Pattern Fundamental Quality Methodology — Canonical Reference

One-line definition: patearn is Patearn's rule-based, point-in-time 14-pattern fundamental-quality score for Indian equities — the pure-Python Stage-1 selection lens that reads capital efficiency, operating leverage, balance-sheet strength, valuation asymmetry and ten further quality patterns, gates out governance/leverage blow-ups via five hard disqualifiers, and surfaces the handful of names worth a human deep-dive.


1. What it is

patearn is the project's core analytical lens and namesake — the methodology after which the whole platform is named. It is a disciplined process for identifying Indian **mid-cap multi-baggers before institutional re-rating**, built explicitly to override the intuitive shortcuts that cause most investment mistakes: buying a loud narrative, rationalising away a governance red flag, or confusing price momentum with a live thesis.

Operationally it is two things working together:

1. A rule-based quantitative score (Phase 3). Every surviving company is scored on 14 patterns × 3 signals each, each signal graded No / Partial / Yes, weighted, and rolled into a single Normalised Score (NS, 0–100) with a mandatory sensitivity band, a Pattern Activation Count (PAC), a Quality-Gate floor on the fundamental core, and a tier (T1 → T4, or DISQUALIFIED). This is what the scoring code implements — pure Python, no LLM (Guardrail #4 /). 2. A qualitative process wrapper (the 6 phases). Universe construction → hard filter → quantitative score → qualitative deep dive → entry & sizing → monitoring/exit. The score surfaces candidates; human judgment in claude.ai (Phase 4) verifies whether the story is real.

The governing empirical finding (**) is the one everyone must internalise: the patearn score is a RISK FILTER, not a return ranker.** In the survivorship-aware point-in-time backtest, blow-up rate (>50% loss / 12m) falls monotonically as tier improves, while the long-short return of the score itself is ≈ 0. patearn tells you what not to own and what is high-quality enough to own — the return engine is momentum/accumulation (see the momentum riskadj notes).

2. Our variation vs. the standard technique

Generic fundamental screening (a Piotroski F-Score, a Magic-Formula rank, a "high-ROCE-low-PE" filter) is a static, single-snapshot, count-of-good-things exercise. patearn deliberately departs on five axes, and the departures are the proprietary part:

The calibration benchmark for a Tier-1 setup is Apar Industries FY2021 (≈₹350, pre-~34× move), scored from public disclosures only — documented in the SKILL notes § Calibration Standard.

3. How it works (methodology)

The full mechanism lives in the SKILL notes (process) and the patterns notes (per-signal criteria). Conceptual summary only here — exact weights, thresholds, and the normalisation math are IP and are NOT restated on this page.

The 6-phase process (mandatory sequence, no phase skipped):

PhaseCadenceWhat happensWhere it runs
1· Universe constructionQuarterlyBound the mid-cap pond; tag against active policy cycles (Power T&D, Defence, Renewables, Semis, Railways, Water, Export mfg, Healthcare); keep a graveyard list (survivorship discipline)methodology
2· Hard filterQuarterlyApply the 5 hard disqualifiers + rising-receivables + SEBI-action screens; expect ~40–50% eliminationrule-based
3· Quantitative scoreQuarterly (post-results)Score the survivors on the 14 patterns → NS, tier, QG, PAC, sensitivity band; surface top ~20–30the scoring code (pure Python)
4· Qualitative deep diveMonthly (shortlist only)Read 8 concalls, segment margins, CFO/PAT, auditor report; bear case written first; 3 exit tripwiresclaude.ai + patearn skill (not the API — cost control)
5· Entry & sizingOn decisionEntry Math (implied CAGR); size by tier; record a 3-sentence thesis + written tripwiresmethodology
6· Monitoring & exitQuarterlyRe-score; re-check disqualifiers; classify each holding Hold / Trim / Re-evaluate / Exitthe exit protocol

**The 14 patterns (conceptual grouping; math in the patterns notes):**

Scoring architecture (mechanisms named, constants withheld): each signal is graded No/Partial/Yes; signals not sourced from a citable document are tagged unverified and discounted (they count, but less); the weighted sum is normalised to a 0–100 NS; a mandatory pessimistic / base / optimistic sensitivity band is always reported; PAC counts how many of the 14 patterns are active (breadth check); the Quality Gate enforces a floor on the fundamental core; and names are placed into tiers T1 (strong) → T2 → T3 → T4 (watch), or DISQUALIFIED. A name that has already run >200% in 24 months is tier-capped. The exact weights, thresholds, MAX score, unverified-discount factor and tier cutoffs are in the scoring code + the calculations and weights notes.

The 5 hard disqualifiers (binary, non-negotiable — surfaced, not hidden): promoter pledge over the limit· net D/E too high and still rising· CFO negative for 2+ consecutive years· auditor resignation/qualification/unexplained change· related-party transactions too large a share of revenue. Any one fires → DISQUALIFIED, logged, no entry. Rationale and the six Indian mid-cap failure case studies (Vakrangee, Manpasand, Suzlon, Aban, PC Jeweller, Yes Bank) that motivate them: the failures notes.

What the code can and cannot see: the scoring code runs the quantitative Phase-3 score over numeric fundamentals. The patterns that need narrative/segment/technical inputs (tailwind, export mix, VCP, volume) it scores conservatively as Partial-Estimated and hands off to Phase 4 in claude.ai. Where a real point-in-time trend key is available (ROCE trend, OPM trend, interest coverage, profit acceleration, debtor days, cash-conversion cycle, promoter-rising —), the corresponding signals switch from proxy to verified; the live Telegram snapshot path (no trend keys) is byte-for-byte unchanged (regression-safe).

⚠ Proxy fidelity (Codex -F3, converged). The top-5 Quality-Gate patterns are computed via numeric proxies, not the exact multi-year rules in the patterns notes: e.g. Pattern 1 credits endpoint / 3Y-avg ROCE rising (not three consecutive annual rises or sector-relative improvement); Pattern 2 uses profit-vs-sales growth + OPM level/trend (not EPS CAGR + EBITDA higher-highs + PAT-margin expansion); Pattern 5 uses D/E level + interest-coverage level (not D/E falling + coverage >5x and rising + FCF positive 2-of-3y). The proxies are directionally sound and deliberately conservative, but they are proxies; read a Quality-Gate pass as "broadly clears the fundamental core", not "satisfies every exact criterion". Implementing the exact rules is a queued enhancement.

4. Status, validation & honesty fence

5. Where it lives (code· routes· DB· timers)

Code

Telegram commands

Web routes (/dash)

DB tables (the db code)

Timers (systemd on the VPS)

6. Data & provenance

Bhav copy + delivery = primary source. NSE bhav copy (prices, volumes, delivery), the rolling delivery-value-per-trade signals, and the point-in-time price chain are all authentic NSE data. No concern here.

Fundamentals = the KNOWN primary-sources exception, under active remediation. Disclose this wherever the score is shown.

7. Terminology canon

8. Decision & session history

9. Open items / frozen work

10. Sources of truth

Methodology (resources — two levels up from the strategies folder):

Product / doctrine:

Companion strategy lens:

the project's running record sections: § Decision log (///////**/**///)· § Database schema (pattern_scores, capital_allocation_scores, fundamentals)· § Key file paths· § Telegram bot commands· § Session log (Sessions 37, 63, 73, 75).

Memory (user auto-memory, by slug): primary-intent-north-star (patearn = the best analytical tool for Indian equity research; never leak formulas)· fundamentals-archive-built (the 24y PIT archive; do not re-collect)· dataset-roadmap-c-a-b (C/A/B lenses stay veto-only)· predictive-attributes-finding (momentum the only surviving factor; C/A/B veto-only)· data-sourcing-primary-only (primary sources; never Screener/vendors).