How PEG
reads the terrain.
Every value in a PEG brief is one of three things: calculated from retrieved market data, classified by a deterministic rule, or interpreted in language by AI from those values. Nothing is forecast.

Deterministic weighted classification
Each family produces a 0–100 sub-score from its calculated values. The PEG Score is the weighted sum. It summarizes alignment between observable conditions and is never a probability that a stock will rise.
- Trend Structure30%
- Momentum20%
- Relative Strength20%
- Volume Confirmation10%
- Volatility Quality10%
- Market Regime10%
85–100
Exceptional
70–84
Strong
55–69
Constructive
40–54
Mixed
25–39
Weakening
0–24
Defensive
Trend structure
Where price sits relative to its 20, 50 and 200-day simple moving averages, and whether those averages are stacked (20 above 50 above 200). Distance from each average is expressed in percent.
- SMA 20 / 50 / 200CALCULATED
- Distance from each averageCALCULATED
- Trend persistence (share of last 40 sessions above the 20D)CALCULATED
- Trend label: Strong · Constructive · Neutral · Weakening · BrokenCLASSIFIED
Momentum
Rate of change over 5, 20 and 60 sessions, plus acceleration (the change in 5-day momentum versus five sessions earlier) and RSI 14 as an overextension check.
- 5 / 20 / 60-day rate of changeCALCULATED
- Momentum accelerationCALCULATED
- RSI 14 (Wilder)CALCULATED
- Momentum label: Accelerating · Positive · Flat · Fading · NegativeCLASSIFIED
Relative strength
The symbol's rate of change minus SPY's over the same 20 and 60-session windows, in percentage points. QQQ is computed as a secondary reference. Windows are aligned by session date.
- RS vs SPY 20D / 60DCALCULATED
- RS vs QQQ 20D / 60DCALCULATED
- RS label: Leading · Outperforming · In line · Lagging · WeakCLASSIFIED
Volume
Relative volume is the latest session's volume divided by the trailing 20-session average (excluding the latest session). Heavy volume on an up day is treated as confirmation; heavy volume on a down day is not.
- 20-day average volumeCALCULATED
- Relative volumeCALCULATED
- Volume label: Confirming · Normal · Light · HeavyCLASSIFIED
Volatility and risk
Wilder ATR 14 expressed as a percentage of price, annualized 20-day close-to-close volatility, maximum 60-day drawdown and distance from 52-week extremes. Risk combines ATR, extension from the 20D, drawdown and RSI extremes into a four-step label.
- ATR 14 and ATR %CALCULATED
- 20-day realized volatilityCALCULATED
- Maximum 60-day drawdownCALCULATED
- Volatility label: Compressed · Orderly · Expanding · DisorderlyCLASSIFIED
- Risk label: Low · Moderate · Elevated · HighCLASSIFIED
Market regime
SPY, QQQ and IWM are each scored on position versus their 20/50/200-day averages, 5 and 20-day momentum and realized volatility. The weighted blend (SPY 45%, QQQ 35%, IWM 20%) is adjusted for agreement between indices and elevated volatility, then mapped to Risk On, Constructive, Mixed or Defensive.
- Index structure, momentum, volatilityCALCULATED
- Regime label and reasonsCLASSIFIED
Market Terrain
The Market Terrain visualization maps calculated dimensions onto a stylized landscape: trend sub-score controls elevation, 20-day momentum controls slope, ATR controls roughness, relative strength controls peak prominence and the risk label places markers. The same inputs always draw the same terrain. It is a representation of the numbers above it, not a model of the future.
The Read
The Read, Scenario Map and supports/risks are written by a language model that receives only the calculated values, classifications, PEG Score and market regime. It does not see news, earnings, fundamentals or price history, and it is instructed to distinguish observation from inference, to use calibrated language, and never to give directives.
If the model is unavailable, a deterministic text is generated from the same values so the brief always renders. Either way, every statement can be checked against the Signal Matrix and the Under the Surface panel.
Market data
Quotes and daily history are retrieved server-side from a public market-data source that does not guarantee real-time delivery; every brief shows its data timestamp and notes that data may be delayed. Indicators are computed only from retrieved prices and volume — when history is insufficient a value is shown as Unavailable rather than estimated.
PEG Markets is research and education only. Nothing here is investment advice.