cj - One thing to consider is that you might want to really leverage your database for doing any set based calculations possible. I've found substantial performance bumps by doing things like sma, ema, wma, slope, arctan, stdev, and other such "technical indicators" in set mode. I'm using SQL...