Skip to content

Batch 2: correct numbers + owner-reported fixes - #2

Open
Arvi23 wants to merge 1 commit into
batch-1-foundationfrom
batch-2-numbers
Open

Arvi23 wants to merge 1 commit into
batch-1-foundationfrom
batch-2-numbers

Conversation

@Arvi23

@Arvi23 Arvi23 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Stacked on #1, so this PR shows only batch 2. Merge #1 first; GitHub then retargets this one to main.

Scoring (see D8 in docs/DECISIONS.md)

  • Two lenses with no metric counted twice:
    • Opportunity = Quality 30% + Valuation 30% + Analyst 25% + Smart money 15%
    • Safety (sidebar) = Liquidity + Solvency & volatility
  • Analyst: with few analysts the score is pulled toward neutral instead of multiplied down. A Strong Buy from 2 analysts now scores 69; before, it scored 44, barely above a Sell from 20 analysts.
  • Valuation: loss-makers get a low score instead of silently skipping P/E. The 52-week position is labelled contrarian and weighted less.
  • FCF yield is skipped for companies whose statements are in a different currency from the share price (e.g. TSM).
  • Geo risk is now a flag rather than a score penalty. Debt/equity is skipped for financial companies.
  • Breakdowns show the actual values (e.g. "Net margin 36.0%"), using one shared renderer.

Data

  • Dividend yield is normalised to a fraction. MSFT showed 88% before.
  • Snapshots carry a schema version, so caches saved in an old shape are refetched instead of breaking the UI.
  • An AI report gets the previous report and adds a "Since the Last Report" section.

Fixes for owner-reported issues

  • The browser now waits until the server answers. On first run it opened too early and showed "lost connection".
  • Logs go to data/watchstock.log, not the console (Windows QuickEdit freeze).
  • Double-clicking start.bat while it's already running just opens a tab.
  • Without an API key, no report is requested automatically; the AI tab shows a hint instead.
  • The TradingView chart gets the right symbol for non-US tickers (TLV.RO → BVB:TLV).
  • Default model is nvidia/nemotron-3.5-super-vl:free.

62 tests. Live-test checklist: docs/HANDOFF.md.


Generated by Claude Code

Scoring (D8): two lenses with no metric counted twice.
- Opportunity = Quality (margins, growth, FCF yield) 30% + Valuation 30% +
  Analyst 25% + Smart money 15%; Safety = Liquidity + Solvency & volatility.
- Analyst consensus with few analysts is shrunk toward 50 instead of
  multiplied down (a thin Strong Buy no longer scores like a Sell).
- Loss-makers get a low valuation score instead of skipped P/E; 52-week
  position labelled contrarian and down-weighted.
- FCF yield skipped when statements and price use different currencies.
- Geo risk is a flag, not a penalty; D/E skipped for financials.
- Uniform breakdown items rendered by one shared UI function.

Data:
- Dividend yield normalised to a fraction in the provider (Yahoo now
  returns percent, so MSFT showed 88%).
- Snapshot schema version: old cached snapshots are refetched.
- AI report gets the previous report and returns changes_since_last.

Owner feedback:
- Browser now opens only once the server answers (first run showed
  "can't connect"); second launch just opens the browser.
- Logs go to data/watchstock.log instead of the console (Windows
  QuickEdit can freeze console writers).
- No API key: no auto-request, a hint is shown instead.
- TradingView symbol mapping (TLV.RO -> BVB:TLV).
- Default model nvidia/nemotron-3.5-super-vl:free; LLM timeout 150 s.

62 tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TW7cJeWrcBW5SJHr4ZKtSH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant