[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Weighted Average



PureBytes Links

Trading Reference Links

What would be the correct way to get a weighted average of three or four
tickers, with the weightings unequal?
 
WtAvg = Wt1 * Price1 + Wt2 * Price2 + Wt3 * Price3.   ??????
 
I am asking because I thought I remember seeing here or on another list that
doing what I wrote above will give an incorrect result.  But I do not
remember what alternative was suggested.
 
Any help?
 
Thanks,
Ken 

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.5/645 - Release Date: 1/22/2007 4:10 PM