WOI
Market
S&P 500
7,297.07 -1.47%
Nasdaq 100
26,895.39 -2.59%
Dow Jones
50,760.79 -0.77%
VIX
21.67 +17.39%
Dollar Index (DXY)
104.97 +0.07%
Gold
3,770.90 +2.48%
Oil (WTI)
84.36 -3.02%
BTC/USD
46,186.79 +7.36%

Research & WOI Methodology · Illustrated reference

WOI Momentum Score

Understand the score, its components, calculation rules and limitations.

Read, watch or explore. No exercises, scores or required progression.

Animated explanation · synthetic observations

Follow the score through its rules

At relative volume greater than 4, an explicit gate returns zero. A gate, a negative subtotal clipped to zero and a weak component mix are different explanations. Read the reason, not just the number.
Trigger a gate

At relative volume greater than 4, an explicit gate returns zero. A gate, a negative subtotal clipped to zero and a weak component mix are different explanations. Read the reason, not just the number.

Explore how individual components, market context and eligibility rules affect the WOI Momentum Score. The illustration uses synthetic observations and does not represent historical returns or outcome probabilities. Playback is optional.

In this reference
  1. A rules-based summary, not a probability
  2. Inputs and calculation conventions
  3. Conditions that return zero
  4. Build the initial subtotal
  5. Regression room is a model distance
  6. Apply context adjustments, then clip
  7. A transparent arithmetic ledger
  8. Read the reasons before interpreting a change
  9. Calculation scope and limitations

A rules-based summary, not a probability

WOI Momentum Score combines selected price structure, RSI, MACD, relative volume and context rules into a bounded number. It is not the probability of a profitable investment, a percentile among stocks, a target return or an independent valuation. A score of 50 does not mean a 50% chance of success.

The WOI Momentum Score combines several technical measurements into a rules-based summary of momentum conditions. The score contributes to momentum candidate selection, while ranking, eligibility and portfolio decisions may depend on additional criteria. A higher score is not a probability of future gains.

The calculation is a sequence, not a simple weighted average. Some conditions return zero immediately; some add points; one multiplies an intermediate subtotal. Their order matters. A zero can mean a gate was triggered, not merely that all components were weak. The accompanying reason is necessary to distinguish those cases.

Inputs and calculation conventions

The function receives ordered OHLCV observations. It uses close for EMA, RSI, MACD, returns and regression; high and low for structure; high for a recent-high distance; and volume for relative activity. The function does not itself establish the vendor, corporate-action adjustment or session eligibility of those observations. Reproduction requires identical input history and upstream conventions.

EMA uses the recursive first-value convention with α=2/(n+1). EMA50 and EMA200 fall back to the latest close when fewer than 50 or 200 observations are present respectively. That fallback is not a fully warmed average. MACD is EMA12−EMA26, signal is EMA9 of MACD, and histogram is MACD−signal.

The imported RSI14 helper smooths gains and losses with α=1/14 and adjust=False. It replaces zero smoothed loss with a missing value before division and fills missing RSI outputs with 50. Consequently, an entirely loss-free rising sequence can produce 50 in this implementation rather than the conventional limiting value 100. This is an implementation detail, not a redefinition of RSI. The RSI reference distinguishes mathematical conventions; do not silently substitute one when reproducing this score.

Relative volume v is latest volume divided by its rolling 20-observation mean, including the latest observation. With fewer than 20 observations the denominator is latest volume. Non-finite values or a nonpositive denominator produce v=0. This is not a comparison with the preceding 20 observations and is not a time-of-day-normalized intraday ratio.

Conditions that return zero

  • Latest close × mean volume is below 3,000,000, or latest close is below 3. The first quantity is a turnover proxy, not the mean of daily price×volume.
  • Regression room is below 5%. The construction is defined below; a failed or insufficient-history helper normally returns zero room and therefore fails this gate.
  • Close is at or below EMA200 and more than 10% below EMA50.
  • Close is more than 20% below EMA50, regardless of EMA200.
  • Relative volume is greater than 4.

These are rules in a particular implementation, not universal definitions of investability. The function applies the early market-quality gates before forming the subtotal and the extension/volume gates after regression adjustments. At exact thresholds, strict and inclusive comparisons differ: v=4 is not the greater-than-4 gate; price=3 is not the below-3 gate. Final clipping can also turn a negative result into zero without a gate.

Build the initial subtotal

clip(x,0,1) = min(1,max(0,x))
S starts at 20
RSI contribution = 8 × clip(1 − |RSI14−55|/20,0,1)
Volume contribution = 5 × clip((v−0.90)/0.40,0,1)

The structure component adds 15 for higher lows without lower highs, adds 8 when both flags are present, subtracts 6 for lower highs without higher lows, and subtracts 8 when neither is present. Both flags can coexist in a compressing structure; they are not logical opposites.

The structure helper examines up to 220 observations. It requests order-6 swings, normally excludes the latest three observations, and applies a minimum five-index spacing filter. Higher lows require the last three selected lows to rise strictly; lower highs require the last three selected highs to fall strictly. With fewer than 60 observations neither flag is set. Near the minimum history length, the helper can fall back to using the full window instead of excluding three observations. A historical pivot location must not be confused with the later time at which it became recognizable.

The smooth RSI contribution is largest at 55. Additional adjustments subtract 6 below RSI55 or subtract 5 above RSI70. RSI at or above its EMA9 adds 2. Thus a small movement across 55 can create a discrete jump in score even though the underlying indicator changes smoothly.

MACD at or above its signal adds 6; if its histogram is also strictly positive, add another 2. When MACD is below signal, add 3 only if at least four histogram observations exist and the latest exceeds the observation three intervals earlier. The code does not award both branches. A flat zero MACD and signal satisfy equality for the +6 branch but not the strictly positive histogram bonus.

The volume contribution saturates at 5 points when v reaches 1.30. The recorded vol_ok flag uses v≥1.15, but that flag is not an additional scoring gate. A label in the rationale must not be promoted into a rule that the function does not execute.

Regression room is a model distance

Fit closeᵢ = a + b×i + residualᵢ over up to 252 observations
σ = population standard deviation of those residuals
upper = latest fitted close + 2σ
room = (upper − latest close)/latest close
close resistance distance = (maximum close over last 60 − latest close)/latest close

The helper requires at least 50 observations. Room below 0.05 returns zero score. Otherwise, if the close-based resistance distance is below 0.03, multiply the subtotal by 0.70. Then, if room exceeds 0.15, add 2. The multiplier applies to the subtotal at this point, not to every subsequent adjustment.

The regression envelope is descriptive. Twice residual standard deviation does not establish a 95% future-price interval: no predictive distribution, independence or stable-variance assumptions have been validated by this calculation. “Room” means distance to this fitted envelope; it is not guaranteed upside or available liquidity.

A later rule uses the maximum high over the last 60 observations, with a short-history fallback, rather than the maximum close. Those are separate distances and can both penalize a candidate. Calling both simply “resistance” would hide an important implementation difference.

Apply context adjustments, then clip

Five-, ten- and twenty-observation returns compare the latest close with the close 5, 10 and 20 intervals earlier. With insufficient history the code falls back to the first close. The variable names use “d”, but the function itself receives observations; daily interpretation depends on the caller supplying daily data.

  • Five-interval return from 3% through 12%: +3. Above 12% through 18%: +1. Negative: −6. Other values: no adjustment.
  • Relative volume above 2: −10. Otherwise at least 1.30: +1. Otherwise below 0.80: −2.
  • Close at or below EMA200: −6.
  • Extension above EMA50 greater than 25%: −15; otherwise greater than 15%: −8.
  • Ten-interval return above 20%: −8. Twenty-interval return above 35%: −10. These can both apply.
  • Distance to the recent high below 3%: −12; otherwise below 6%: −6.

Finally clip the result to [0,100]. Clipping is a bound, not evidence that every value in that interval is attainable or equally likely. More volume or a stronger recent return can reduce the score because the rules penalize extreme activity and extension. The score is deliberately non-monotonic in several inputs.

A transparent arithmetic ledger

The following is a synthetic component-level illustration of the scoring order, not an asserted OHLCV history. Suppose the gates pass, higher lows alone are true, RSI=55 and is above its smoothing, MACD exceeds signal with positive histogram, and v=1.30. The subtotal is 20+15+8+2+8+5=58.

Let regression room be 10% and close-based resistance distance 2%. Apply 58×0.70=40.6. A 6% five-interval return adds 3 and v=1.30 adds 1. Assume close is above EMA200, extension is 5%, ten/twenty-interval returns avoid penalties, and distance to the recent high is 8%. Final score is 44.6. The difference between a 2% close-based distance and an 8% high-based distance is possible because a high can exceed every closing price.

Keeping those component assumptions but using v=2.10 leaves the saturated five volume points unchanged and replaces the +1 volume adjustment with −10: the result becomes 33.6. At v>4, the gate returns zero instead. These controlled component comparisons isolate rule behavior; they are not a simulation in which one can change volume without recomputing its denominator.

Read the reasons before interpreting a change

Two identical scores can have different contributors. One may combine strong structure with extension penalties; another may have weaker structure but no penalties. A rising score can result from a threshold crossing, an old high leaving a window, a changed input history or a disappearing penalty rather than new information about future returns.

Many contributors reuse the same prices. RSI, MACD, returns, regression and EMA extension are not independent votes. Summing them does not multiply confidence. The score calculation alone does not establish out-of-sample profitability. That would require a specified decision rule, point-in-time inputs, realistic execution, costs and an appropriately held-out evaluation.

Use the score as a compact description whose rationale can be inspected alongside market context, moving-average behavior, MACD and risk constraints. It cannot replace those distinctions.

Calculation scope and limitations

The calculations in this guide explain the momentum score methodology through original synthetic examples. Market data adjustments, additional selection criteria and portfolio rules can influence how the score is used. The score does not establish historical profitability or predict future returns.