EMA calculations slightly off... figuring out why, and it's driving me nuts