The Sine Weighted Moving Average is being tested along with many other indicators in the ‘Technical Indicator – Fight for Supremacy‘. It is not an indicator that many people will be familiar with so I will briefly cover how it is calculated and have also built the Sine Weighted Moving Average into an Excel Spreadsheet for free download.
A Sine wave is a smooth, repetitive oscillation that shifts between a high of y and a low of -y. A SW-MA takes its weighting from the first half of a Sine wave cycle so the largest weighting is given to the data in the middle. The result is very similar to the Triangular Moving Average (Tri-MA) but much more difficult to calculate. Below you can see how the weighting is applied to a 50 period SW-MA, EMA and SMA:
.
.
How To Calculate a Sine Weighted Moving Average
.
To calculate the Sine Weighted Moving Average multiply the sine value for each period by the close price for that period, add it all up and divide the result by the sum of the sine weights. As a formula it looks like this:
.
.
Here is an example of a 3 period Sine Weighted Moving Average:
.
.
Sine Weighted Moving Average Excel File
.
An Excel Spreadsheet containing a Sine Weighted Moving Average is available for FREE download. It contains the ‘basic’ version you can see above and a ‘fancy’ one that will automatically adjust to the length you specify. Find it at the following link near the bottom of the page under Downloads – Technical Indicators: Sine Weighted Moving Average (SW-MA). Please let us know if you find it useful.
.
Sine Weighted Moving Average and a Simple Moving Average
.
.
Test Results
.
We tested several different types of Weighted Moving Averages including the SW-MA through 300 years of data across 16 global markets to reveal which is the best and if any of them are worthy of use as a trading tool. See the results – Weighted Moving Averages Put To The Test
.
.
One thought on “Sine Weighted Moving Average (SW-MA)”
Comments are closed.