Simple Moving Average - version2 : this 
program is now able to deal with duplicate 
dates ( it will give you total stock value for
each date and calculate Moving Average).

Enjoy.