Sine-Weighted Moving Average

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Sine-Weighted Moving Average

Postby Apprentice » Thu Jul 11, 2013 6:30 am

swma.png

SineWMA[i]=Sum/Weight, where
Sum=Price[i-N+1]*sin(PI*(N)/(N+1))+Price[i-N+2]*sin(PI*(N-1)/(N+1))+…+Price[i]*sin(PI*1/(N+1))
Weight= sin(PI*(N)/(N+1))+ sin(PI*(N-1)/(N+1))+…+ sin(PI*1/(N+1)).
SWMA.lua
(2.4 KiB) Downloaded 341 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19844
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Sine-Weighted Moving Average

Postby Alexander.Gettinger » Thu Aug 29, 2013 11:10 am

MQL4 version of Sine-Weighted Moving Average: http://www.fxcodebase.com/code/viewtopi ... 38&t=59353.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3342
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Sine-Weighted Moving Average

Postby Apprentice » Fri Jun 22, 2018 8:28 am

The indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19844
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 18 guests