Linear Weighting

Technical Analysis
intermediate
8 min read
Updated Mar 5, 2024

What Is Linear Weighting?

Linear weighting is a mathematical method of calculating averages where data points are assigned weight values that decrease arithmetically (in a straight line) as they get older, giving more importance to recent data.

In the field of technical analysis, "Smoothing" price data is an essential step for identifying the underlying trend amidst the daily "Noise" of the markets. However, the most basic method of smoothing—the "Simple Moving Average" (SMA)—is often criticized for its "Lag" problem. An SMA treats a price from 20 days ago as having the exact same importance as the price from today. This equal weighting means the indicator reacts slowly to sudden changes in market direction, often providing signals that are too late to be useful for active traders. Linear Weighting is the mathematical solution designed to bridge this gap, creating a more responsive and "Actionable" average by prioritizing the most recent data. The core principle of Linear Weighting is "Temporal Recency." It operates on the philosophy that the further back in time a price occurred, the less relevant it is for predicting the price of tomorrow. To implement this, the calculation assigns a "Weighting Factor" to each data point that decreases arithmetically (in a straight line) as the data gets older. For a 10-day average, today's price would be multiplied by 10, yesterday's by 9, the day before by 8, and so on, until the oldest day is multiplied by 1. The resulting Linearly Weighted Moving Average (LWMA) "Hugs" the current price action much more tightly than a simple average, allowing traders to detect "Trend Reversals" and "Momentum Shifts" with significantly greater precision. It represents a precise mathematical compromise between the extreme "Lag" of an SMA and the "Infinite Memory" complexity of an Exponential Moving Average.

Key Takeaways

  • Used primarily in the Linearly Weighted Moving Average (LWMA).
  • Assigns higher importance to recent prices compared to older prices.
  • Reduces lag significantly compared to the Simple Moving Average (SMA).
  • Weights drop off in a constant arithmetic progression (e.g., 5, 4, 3, 2, 1).
  • Data outside the lookback period has absolutely zero influence (finite memory).
  • Contrast with Exponential Weighting (EMA) which drops off geometrically and has infinite memory.

How Linear Weighting Works: The Arithmetic of Recency

The "Mechanics" of linear weighting are defined by a clear, arithmetic progression. Unlike more complex weighting schemes, linear weighting is transparent and easy to visualize. To calculate an LWMA, the software follows a structured four-step process. First, it identifies the "Look-Back Period" (N). Second, it assigns a weight to each period ranging from 1 up to N. The most recent price receives the weight of N, while the oldest price in the window receives a weight of 1. Third, it calculates the "Denominator," which is the "Sum of the Digits" from 1 to N. For example, for a 5-day average, the denominator is 1+2+3+4+5 = 15. Finally, the sum of the weighted prices is divided by this denominator to arrive at the final value. This "Arithmetic Step-Down" creates a unique effect on the chart. Because the weights drop off in a straight line, the LWMA is more sensitive to "New Information" than a simple average but remains "Bounded." This leads to the concept of "Finite Memory." In a 20-period linear average, a massive price spike that occurred exactly 21 days ago has absolutely zero impact on today's reading. It has "Fallen off the Cliff" of the calculation. This is a critical differentiator from the "Exponential Weighting" used in the EMA, where every historical price point technically still exerts a miniscule influence on the current value. For traders who believe that "What happened a month ago is irrelevant," the linear approach provides a cleaner, more logical framework for assessing the "Immediate Market Regime."

Important Considerations for Weighting Strategies

When choosing to use linear weighting over other methods, the most critical consideration is the "Signal-to-Noise Ratio." While the LWMA is faster than the SMA, its increased responsiveness makes it more prone to "False Signals" or "Whipsaws" in choppy, sideways markets. Because it prioritizes the most recent price so heavily, a single anomalous spike can cause the indicator to pivot sharply, potentially tricking a trader into entering a trend that isn't actually there. Therefore, linear weighting is best suited for "High-Momentum" environments rather than ranging or "Mean-Reverting" markets. Another vital consideration is the "Institutional Alignment." The vast majority of major banks and institutional funds utilize the Simple Moving Average (SMA) and the Exponential Moving Average (EMA) for their primary analysis. This means that important technical levels (like the 50-day or 200-day lines) are often "Self-Fulfilling Prophecies" because so many people are watching them. Linear weighting is a more "Niche" tool, often used by individual scalpers or quantitative hedge funds seeking a unique "Edge." If you use an LWMA, you may see a reversal signal earlier than the rest of the market, but you must be prepared for the fact that the broader market might not react to that signal until the standard EMA or SMA also crosses. Finally, consider the "Look-Back Calibration." Because the weight of the most recent day is equal to the length of the period, a 10-day LWMA is much more aggressive than a 100-day LWMA; choosing the right "Depth" of weighting is essential for matching the indicator to your specific trading timeframe.

Arithmetic (The Math)

Let's calculate a 3-day LWMA for a stock with closing prices: $10, $11, $12 (Today).

1Step 1: Assign weights. Most recent day gets 3, previous gets 2, oldest gets 1.
2Step 2: Calculate denominator (Sum of weights). 1 + 2 + 3 = 6.
3Step 3: Multiply price by weight.
4 Day 1 ($10) x 1 = 10
5 Day 2 ($11) x 2 = 22
6 Day 3 ($12) x 3 = 36
7Step 4: Sum the results: 10 + 22 + 36 = 68.
8Step 5: Divide by denominator: 68 / 6 = 11.33.
9Comparison: A Simple Moving Average (SMA) would be (10+11+12)/3 = 11.00.
Result: The LWMA value (11.33) is higher than the SMA (11.00) because it prioritized the recent higher price ($12).

Linear vs. Exponential Weighting

Two ways to solve the lag problem. Each has a different "Statistical Memory."

FeatureLinear Weighting (LWMA)Exponential Weighting (EMA)
Drop-off PatternStraight Line (Arithmetic)Curved (Geometric)
MemoryFinite (Zero after N days)Infinite (Never truly hits zero)
ResponsivenessHigh (Linear response)Very High (Exponential response)
CalculationComplex Sum of DigitsSimple Multiplier
PopularityNiche / SpecializedGlobal Standard

When to Use Linear Weighting

Professional traders typically prefer Linear Weighting when they want a specific, hard cutoff for data relevance. In many technical systems, the EMA's "Infinite Tail" is seen as a disadvantage because it allows "Zombie Data" from weeks or months ago to minutely influence the indicator's current position. With an EMA, a massive price spike 100 days ago technically still affects the average today because the math never truly reaches zero. With a 20-day LWMA, that spike 100 days ago is mathematically non-existent. This makes LWMA superior for "Scalpers" and "Short-Term Swing Traders" who believe that the market's "Price Memory" is short and that current momentum is the only reliable guide for future direction.

FAQs

It depends on your goal. For generating entry and exit signals (like "Crossovers"), the LWMA is often superior because it reacts faster to price changes, getting you into a trade earlier. However, for identifying major "Support and Resistance" levels, the SMA is often better simply because it is the "Standard" that most institutional traders and algorithms are monitoring.

It is a matter of preference regarding "Sensitivity." The EMA gives even more weight to the very latest data point than the LWMA, making it slightly more responsive to immediate ticks. However, the LWMA has a "Finite Memory," meaning it completely discards old data after the look-back period, whereas the EMA keeps a "Geometric Tail" of all past prices. Many traders find the LWMA provides a smoother, more "Realistic" representation of a trend than the hyper-sensitive EMA.

Most professional platforms (like TradingView, Thinkorswim, or MetaTrader) include this as a standard indicator. In TradingView, you search for "Moving Average Weighted" or "WMA." Note that "WMA" almost always refers specifically to the Linear Weighted version, as it is the most common form of non-exponential weighted average used in technical analysis.

Yes. The principle of linear weighting can be applied to almost any periodic calculation. For example, a "Weighted RSI" or a "Weighted Stochastic" would apply higher weights to recent closes when calculating the oscillator value. While less common, these variations are used by quantitative traders to create "Fast-Response" versions of standard indicators to gain a timing advantage.

The sum of the digits is the formula used to find the denominator for the weighted average. For a 10-day period, it is 1+2+3+4+5+6+7+8+9+10 = 55. This ensures that the total "Weight" assigned to the prices equals 100% of the average, preventing the indicator from becoming distorted or "Inflated" as the period length changes.

The Bottom Line

Linear Weighting represents a sophisticated "Middle Ground" in the world of technical smoothing, offering a faster and more relevant reaction time than the sluggish Simple Moving Average without the "Infinite Memory" complexities of the Exponential Moving Average. By mathematically prioritizing the "Now" over the "Then," the Linearly Weighted Moving Average provides traders with a cleaner, more sensitive lens through which to view market momentum and potential trend reversals. For the short-term swing trader or the precision-focused scalper, it is a vital tool for cutting through the noise and identifying the market's true direction before the rest of the herd catches on. While it requires a more disciplined approach to avoid "Whipsaws," its ability to discard irrelevant historical data makes it one of the most logically sound smoothing techniques available in the analyst's toolkit. In the fast-moving arena of global finance, Linear Weighting ensures that your indicators are as current as the markets they track.

At a Glance

Difficultyintermediate
Reading Time8 min

Key Takeaways

  • Used primarily in the Linearly Weighted Moving Average (LWMA).
  • Assigns higher importance to recent prices compared to older prices.
  • Reduces lag significantly compared to the Simple Moving Average (SMA).
  • Weights drop off in a constant arithmetic progression (e.g., 5, 4, 3, 2, 1).

Congressional Trades Beat the Market

Members of Congress outperformed the S&P 500 by up to 6x in 2024. See their trades before the market reacts.

2024 Performance Snapshot

23.3%
S&P 500
2024 Return
31.1%
Democratic
Avg Return
26.1%
Republican
Avg Return
149%
Top Performer
2024 Return
42.5%
Beat S&P 500
Winning Rate
+47%
Leadership
Annual Alpha

Top 2024 Performers

D. RouzerR-NC
149.0%
R. WydenD-OR
123.8%
R. WilliamsR-TX
111.2%
M. McGarveyD-KY
105.8%
N. PelosiD-CA
70.9%
BerkshireBenchmark
27.1%
S&P 500Benchmark
23.3%

Cumulative Returns (YTD 2024)

0%50%100%150%2024

Closed signals from the last 30 days that members have profited from. Updated daily with real performance.

Top Closed Signals · Last 30 Days

NVDA+10.72%

BB RSI ATR Strategy

$118.50$131.20 · Held: 2 days

AAPL+7.88%

BB RSI ATR Strategy

$232.80$251.15 · Held: 3 days

TSLA+6.86%

BB RSI ATR Strategy

$265.20$283.40 · Held: 2 days

META+6.00%

BB RSI ATR Strategy

$590.10$625.50 · Held: 1 day

AMZN+5.14%

BB RSI ATR Strategy

$198.30$208.50 · Held: 4 days

GOOG+4.76%

BB RSI ATR Strategy

$172.40$180.60 · Held: 3 days

Hold time is how long the position was open before closing in profit.

See What Wall Street Is Buying

Track what 6,000+ institutional filers are buying and selling across $65T+ in holdings.

Where Smart Money Is Flowing

Top stocks by net capital inflow · Q3 2025

APP$39.8BCVX$16.9BSNPS$15.9BCRWV$15.9BIBIT$13.3BGLD$13.0B

Institutional Capital Flows

Net accumulation vs distribution · Q3 2025

DISTRIBUTIONACCUMULATIONNVDA$257.9BAPP$39.8BMETA$104.8BCVX$16.9BAAPL$102.0BSNPS$15.9BWFC$80.7BCRWV$15.9BMSFT$79.9BIBIT$13.3BTSLA$72.4BGLD$13.0B