How StockView works
Analysis pipeline, data sources and metrics.
Overview
StockView uses a 6-step sequential analysis pipeline. Each step performs a specific task: configuration, data collection, analysis, risk assessment, rebalancing, and final report synthesis.
The 6-step pipeline
Portfolio parameters
Parses positions and classifies them by region (US, European, crypto equities). Uses exchange suffixes to identify markets.
Quotes, MPT metrics
Fetches 12-month historical prices from Yahoo Finance. Computes Modern Portfolio Theory metrics: return, volatility, Sharpe, max drawdown, VaR, etc.
Technical & fundamental signals
Analyzes each position: RSI, MACD, Bollinger Bands, moving averages, P/E, earnings growth, dividend yield, beta and analyst ratings.
Risk profile
Evaluates concentration, high correlations, volatility and regional macro risks. Returns a score and LOW / MEDIUM / HIGH classification.
Suggested actions
Proposes REDUCE, INCREASE or MAINTAIN for each position. Min-variance weights serve as the mathematical reference.
Markdown report
Compiles the final report with metrics, technical and fundamental outlook, risk profile and action plan.
Metrics used
Computed on 12 months of daily data from Yahoo Finance.
Σ(wᵢ × rᵢ)Weighted average return over 252 trading days.
√(w' Σ w) × √252Portfolio standard deviation via variance-covariance matrix. < 12%: conservative, 12-20%: moderate, > 20%: aggressive.
(return − 4.5%) / volatilityRisk-adjusted return. > 1.0: good, 0.5-1.0: acceptable, < 0.5: insufficient.
min(Pₜ / max(P) − 1)Largest peak-to-trough decline over 12 months.
5th percentile of returnsMaximum expected loss 95% of trading days.
VaR_daily × √21Estimated monthly VaR (approximation).
1 / Σ(wᵢ²)Concentration index. < 3.0: concentrated portfolio.
√(w*' Σ w*)Volatility theoretically achievable with optimal rebalancing.
SLSQP optimisationAllocation that minimises portfolio variance.
Pearson r on 252 daysMost correlated pairs. |r| > 0.75: near-redundant positions.
Data sources
Yahoo Finance
Live market data: quotes, OHLCV, P/E, beta, analyst ratings, dividend yield. ~15 min delay. No API key required.
Financial news
News headlines per symbol from Yahoo Finance.
Macro data
Via regional proxy ETFs (SPY, EZU, EEM, etc.).
Known limitations
- ·Prices are delayed ~15 minutes via Yahoo Finance.
- ·Monthly VaR uses √21 — real losses can exceed the estimate.
- ·Macro analysis uses ETF proxies, not dedicated economic data.
- ·Correlations on less than 252 days may be less stable.
- ·The pipeline runs once per submission, no real-time updates.