11 steps from ticker input to verdict. With the actual math. Using NVDA as the example because that's the stock everyone wants AI to talk about.
1
You enter a ticker
Let's analyze NVDA. You enter the symbol in the analysis input or land on /stocks/NVDA. ARIA Analyst classifies the asset (NVDA → stock), routes to the StockScorer pipeline, and triggers a parallel agent run.
POST /api/v1/analyze
{ "ticker": "NVDA", "asset_type": "stock" }
2
Data Collection Agent fetches everything
First, the data_collection agent pulls fresh inputs in parallel:
- Price + 5y history (yfinance; fallback: Yahoo v8 direct API)
- Fundamentals: 5y income statement, balance sheet, cash flow
- Insider transactions (50 most recent)
- Institutional holders, mutual fund holders
- Options chain: IV skew, put/call ratio, unusual activity
- News sentiment (NewsAPI, last 30 days)
- Macro context (VIX, yield curve, sector regime)
- Earnings dates and historical surprise
3
5-agent deterministic scoring core runs in parallel
Five deterministic agents compute sub-scores. Each is a math function (regression + rules), not an LLM — same inputs, same output, always. Their weights for stocks are explicit and public (see config/agents_config.py):
- Macro (15% weight): VIX x yield curve x sector regime sensitivity
- Fundamental (25% weight): P/E, FCF yield, ROIC, debt ratios, valuation multiples
- Technical (35% weight): RSI, MACD, ADX, ATR, moving averages
- Sentiment (15% weight): news polarity, social signals, divergence with price
- Risk (10% weight): volatility, drawdown, correlation, Kelly fraction
4
Supporting components (not part of the deterministic 5)
Around the 5 deterministic agents, other components run to add depth. These are NOT counted in the '5 agents' because they are either ML (stochastic by nature) or LLM-driven (also stochastic):
- Data collector: fetches all inputs the 5 agents need (not a scorer)
- Math agents: Monte Carlo (10K paths), Sharpe, max drawdown, VaR, CVaR — pure math utilities
- ML ensemble: LightGBM + XGBoost forecast, isotonic-calibrated confidence (stochastic)
- Bull-vs-Bear debate: 2 LLM agents + synthesizer for continuous tilt (LLM-driven)
- Final synthesizer: cross-agent divergence detection, narrative generation (LLM-driven)
- Orchestrator: pipeline coordination
5
Bull-vs-Bear debate runs
Two LLM agents argue opposite sides of NVDA. Bull lists: AI infrastructure dominance, data-center demand, gross margins ~75%. Bear lists: regulatory risk in China, customer concentration, valuation extension. A synthesizer agent scores both arguments on margin + steel-manning quality and outputs a continuous bull/bear tilt — never a binary vote. This is the ONLY place LLMs influence anything; they do not touch the score number.
6
Math agents run probabilistic simulations
Monte Carlo simulation: 10,000 price paths over 1d/5d/20d horizons using GBM with t-distribution fat tails (Student-t with df ~ 5). Outputs: expected return, VaR(95%), CVaR(95%), max drawdown, probability of positive return. These are probabilistic and shown to you as ranges — not point estimates.
price[t+1] = price[t] * exp((μ - σ²/2)*Δt + σ*√Δt*ε)
where ε ~ Student-t(df=5)
7
ML ensemble produces a calibrated forecast
The current market regime (bull/bear/sideways) and forecast horizon (1d/5d/20d) select 1 of 9 trained model bundles. Each bundle has LightGBM + XGBoost trained with PurgedKFold cross-validation (5-day purge gap). A logistic-regression meta-learner combines them, and isotonic regression calibrates the output so 70% confidence really corresponds to ~70% hit rate (Brier-scored). Models retrain monthly via cron.
8
Final score: weighted aggregation
All sub-scores are combined into a final 0-100 score using agent weights that were learned via confidence-weighted Information Coefficient (IC) with 30-day half-life temporal decay. Weights are bounded to [5%, 45%] so no agent dominates and none vanishes. These weights update monthly based on actual prediction outcomes.
final_score = Σ (agent_score_i × weight_i × confidence_i)
9
Risk gate + trade setup
Before producing a verdict, ARIA Analyst applies risk gates: earnings-week veto (1d before earnings = block; 2-3d = -75% size), volatility regime, correlation with existing portfolio. Position size is computed via Kelly criterion clamped at 5%. Stop loss is computed at 2x ATR; take profit at 4x ATR.
10
Verdict + thesis writeup
The final score maps to a verdict: 80-100 = Strong Buy, 60-79 = Buy, 40-59 = Hold, 20-39 = Sell, 0-19 = Strong Sell. An LLM (Ollama qwen2.5 locally, or Claude Opus for Premium) writes a 3-paragraph human-readable thesis based on the scores. The thesis is flavor — it does not change the number.
11
Outcome tracking + adaptive learning
Every prediction is logged with timestamp, score, confidence, horizon. After 1d/5d/20d elapse, the outcome is recorded. A nightly job at 21:00 UTC updates outcomes; a monthly job retrains the ML bundles and re-optimizes agent weights based on observed IC. This is a real closed-loop system — predictions feed back into future predictions.
Run a real analysis
Free tier gives you 3 of these per day. No credit card. The fastest way to see if this is bullshit or not.