If you want to calculate the moving average over your own array of values then it is one way to do it. If you need something else, then please elaborate on your request and desirably supply your response with an example strategy.
us_copiosus
Post subject: Re: Moving Averages
Post rating: 0
Posted: Thu 19 Sep, 2013, 20:07
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
OK
so if I wish to calculate MA(6) over 'return' rather than 'price':-