Trend

WMA 7 20 50 Stack

Buys when the 7/20/50 weighted moving averages stack bullishly — fast above mid above slow — and sells when the fast average drops back below the mid.

Total score 54/ 100 rank 12 / 41 · trend 09 / 19
01

How It Works

  1. Compute three weighted moving averages over 7, 20 and 50 bars.
  2. Buy when they stack bullishly — fast above mid above slow. The 7-bar leader makes this the fastest of the stack strategies: earlier entries, at the cost of more false starts.
  3. Sell when the fast average drops back below the mid.

Worked example. WMA7 = 104.0 overtakes WMA20 = 103.4 while WMA20 already sits above WMA50 = 102.1 — the stack is aligned, so buy. When WMA7 later dips under WMA20, the position closes.

02

The Math Behind The Indicators

Everything runs on closing prices of the traded timeframe: P is a close, Pt today's close, and N counts bars — one bar is one candle of that timeframe, so 20 bars on a 1h chart is 20 hours.

Weighted Moving Average (WMA)
A moving average where newer prices count more: the latest close gets weight N, the one before N − 1, down to weight 1 for the oldest. That makes it react to a turn in price sooner than a plain average.
WMAN = (N · Pt + (N-1) · Pt-1 + … + 1 · Pt-N+1) / (N + (N-1) + … + 1)
Example: With N = 3 and closes 100, 102, 104 (oldest to newest): (1·100 + 2·102 + 3·104) / (1 + 2 + 3) = 616 / 6 ≈ 102.67 — pulled closer to the latest price than the plain average of 102.
03

Example Chart

Example Chart

04

Real Data

50/ 100Composite score

Metrics Per Trade

Final Metrics

Scores

05

Resampled Data

58/ 100Composite score

Metrics Per Trade

Final Metrics

Scores