Concept

Sine-weighted MA

Sine-weighted MA is a Trend concept. The Library holds 2 implementations, each one a working definition you can pull into Quant.

Top Sine-weighted MA indicators

2 total

What is a Sine-weighted MA?

A sine-weighted MA (SWMA) is a windowed FIR moving average whose weights trace half a sine cycle across the lookback window. Each bar's weight is proportional to the sine of its fractional position in the window, so weights are near zero at both the oldest and newest bars and largest mid-window; the weighted sum is then normalized by the sum of the weights.

That half-sine taper makes it a close cousin of the Triangular MA: symmetric, center-weighted, and very smooth, with less ripple than an equal-weighted SMA because the soft window edges suppress the side lobes a rectangular window lets through. The cost is lag, roughly half the window length, since emphasis sits mid-window rather than on recent bars. It smooths better than it turns, which shapes where it is useful.

How traders use it

  • As an extra-smooth trend baseline: the line's slope and price's side of it update with little bar-to-bar jitter, at the cost of confirming turns later than recency-weighted averages.
  • As a pre-smoothing stage inside other studies, where the tapered window knocks down high-frequency noise before an oscillator or signal calculation runs on the result.
  • As the slow leg in moving-average crossover systems where whipsaw suppression matters more than early entry, paired with a faster average for timing.

Related concepts · Moving-average lineage

Concept family

Trend

100 concepts mapped · 88 in the Library

Sine-weighted MA FAQ

Is a sine-weighted moving average faster than an SMA?

No. Its weights peak at the middle of the window, not at the newest bar, so its lag is comparable to a simple average of the same length, roughly half the window. Its advantage is smoothness: the sine taper suppresses the ripple an equal-weighted window lets through. If lower lag is the goal, recency-weighted or zero-lag designs are the right family.

What is the difference between a sine-weighted MA and a triangular MA?

Both are symmetric, center-weighted averages and they plot almost identically in practice. The triangular MA ramps its weights up and down linearly, while the sine-weighted MA follows a half-sine curve that rounds the shoulders of the window; the two differ only marginally in ripple and smoothness, with no decisive winner. Choosing between them is largely taste; neither meaningfully reduces lag versus the other.

Build Sine-weighted MA your way.

Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.