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

Re: [Metastockusers] Exponential Moving Average in Excel



PureBytes Links

Trading Reference Links



I looked more closely at the values. It appears that what MS is doing is
taking the first data point and treating it as though it was the simple average
(i.e. start point) and then calculates EMAs based on that point. However,
it only displays data starting with the 5th day. That method will lead to
a small difference in the two methods.


Ron wrote:

  
         Larry,
 
 I ran a tiny experiment. I loaded only the number of days data in MS that 
I was going to use for my calculation in Excel. Then copied and pasted the 
MS data into Excel. The EMA numbers were the same to 4 decimal places when 
I did that.
 
 Ron
 
 
 Ron wrote:
 
     
    Larry,

I'm guessing the issue is the starting point.

The numbers will be different depending on from where the moving average 
is calculated (started) which is dependent on the days loaded in MS. You 
can see this for yourself by applying an EMA to a ticker, then note the 
value for the most recent date when you have very few days loaded vs. 
the value when you have many more days loaded.

I believe the numbers should match up, if they are fed exactly the same 
data.

Try loading only the most recent 10 days in MS (those are the days on 
which you're basing your Excel calculation) and see if the numbers match 
up then.

Ron

lseldin wrote:

  
   
         
      Ron,

I was able to get your spreadsheet from Yahoo files.

I am not getting the same results from MetaStock.

My data file has these inputs:

Close	        EMA		PERIODS	5
1098.7				EXPONENT	0.333333333
1113.98999			1-Exponent	0.666666667
1121.530029					
1119.550049					
1117.48999	1114.252012	Starts with 5 period SMA	
1107.300049	1111.934691				
1113.890015	1112.586465			
1122.410034	1115.860988				
1138.109985	1123.277321				
1135.530029	1127.361557				

If I am reading your spreadsheet correct, your MA exp (5) is:
1127.36

MetaStock says 5 period EXP is: 1111.51
MetaStock says 10 period EXP is: 1116.99

Can you help me get the numbers to match?

Thanks for your patience.

<a class="moz-txt-link-abbreviated"
 href="">larryTAKEOUT@xxxxxxxxxx





Yahoo! Groups Links






 

    
   
   
    



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
<a class="moz-txt-link-freetext"
 href="">http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/zMEolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     <a class="moz-txt-link-freetext"
 href="">http://groups.yahoo.com/group/Metastockusers/

<*> To unsubscribe from this group, send an email to:
     <a class="moz-txt-link-abbreviated"
 href="">Metastockusers-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     <a class="moz-txt-link-freetext"
 href="">http://docs.yahoo.com/info/terms/