HomeReady-2-GoPortfolioRankingScreenerStockETFToolsCommunityHelp
ForumsEmail UserPollsFeature RequestsGroups


  Index  | Recent Threads  | Who's Online  | User List  | Search
  Search  
Quick Go »
Thread Status: Normal
Total posts in this thread: 3
[Request a Feature] [Post new Thread]
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 946 times and has 2 replies Next Thread
Stittsville123
Advanced Member


CANADA
Joined: Nov 20, 2004
Posts: 1307
Status: Offline

What is the formula? Reply to this Post
Reply with Quote

What is the formula for the Weighted Moving Average WMA using the bars and offset parameter?

For example:

WMA(10,5,#Bench)

Steve
[Jan 5, 2009 12:21:43 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
Capnpaul
Advanced Member


UNITED STATES
Joined: Dec 14, 2003
Posts: 318
Status: Offline

Re: What is the formula? Reply to this Post
Reply with Quote

Steve

I think your asking for the formula of the WMA function. A WMA is the summation of the price weighted by its offset position (bars offset) divided by the length ( total bars) .

TradeStations' WMA function follows;
Inputs: Price( numericseries ), Length( numericsimple ) ;
variables: WtdSum( 0 ), CumWt( 0 ) ,Count(0);

WtdSum = 0 ;
for Count = 0 to Length - 1
begin
WtdSum = WtdSum + ( Length - Count) * Price[Count] ; * note: squarebrackets denote the (bar) offset
end ;

CumWt = ( Length + 1 ) * Length * .5 ;
WAverage = WtdSum / CumWt ;
[Jan 5, 2009 3:27:58 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
Stittsville123
Advanced Member


CANADA
Joined: Nov 20, 2004
Posts: 1307
Status: Offline

Re: What is the formula? Reply to this Post
Reply with Quote

Thanks Capnpaul!
[Jan 6, 2009 7:20:55 AM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
[Show Thread Printable Version] [Post new Thread]

Free Trial  /  Log In
Username or Email
Password
Stay logged in
Can't remember username or password?