> Might be a good idea to have MA, SMA, WMA and EWMA (+ anymore !?) > in a library file somewhere so that people can just say: > require 'movingAverages' NB. Or whatever the J team want to call it. > I suspect that a lot of J users are re-inventing the wheel on this > one. And in my case at least, probably doing a bad job of it!
This would be MOST helpful! Trying to avoid reinventing the wheel is why I originally asked the question. The EMA (or EWMA) is used quite a bit with stock market data and, according to several leading technical analysts, is supposed to be the best MA for such analysis. However, my main reason for asking is that, as a Type 2 diabetic, I also wanted to track and analyze my daily glucose levels (which I've been maintaining in data files for several years) in terms of the equivalent hemoglobin A1c figures (which doctors use), which would be very similar to using an EMA on the data. Harvey ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
