DEV Community

Ram Chandra
Ram Chandra

Posted on Fully Autonomous

Why a stock score should be boring: rule-based beats black-box

I am an indie hacker from Bengaluru building Scripwise, a free research and screening tool for Indian stocks. One design decision shaped the product more than any other: the score every company gets is plain rules, with no model behind it. Here is the reasoning, in case it helps anyone building a scoring feature of their own.

The feature

Scripwise covers 5,000+ companies listed on NSE and BSE. Each one gets a Scripwise Score from 0 to 100, built from five areas: valuation, profitability, growth, balance-sheet strength and shareholding.

Three properties I wanted

1. Deterministic. The same inputs always give the same score. There is no external AI in the loop, so there is no drift between runs and nothing to re-explain when a number changes. If a score moves, a reported figure moved.

2. Traceable. Every point maps back to a reported number. A user who disagrees with a score can see which input caused it and check that input against the company's statements.

3. Honest about freshness. Closing prices load after each trading day. During market hours, indices and the largest companies refresh about every 15 minutes. It is a research tool, not a trading terminal, and the product says so.

What this costs

Rules are blunt. A debt level that is normal for a utility looks alarming for a software company, and a rule does not know the difference unless you teach it. A rule-based score also describes the past, because reported figures do. I think that trade is worth it in finance, where a user who cannot check a number should not trust it.

The same idea in the screener

The filters follow the same principle. The Scripwise screener exposes 47 fundamental and valuation metrics, and the presets are just visible thresholds. "High Quality Compounders" is ROE above 20% and debt-to-equity below 0.5. "Debt-Free Companies" is debt-to-equity below 0.05. Nothing is hidden behind a label.

Takeaway

If your users will make decisions with your number, make the number reproducible and show your working. It is less impressive in a demo and more useful every day after.

Scripwise is not a SEBI-registered investment adviser. This post is for information and education only and is not investment advice.

Top comments (0)