first of all, great and eye opening post!
In wikipedia (https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average) and other sources the EMA is calculated as:
EMA <- w * x + (1 - w) * EMA
EMA <- w * EMA + (1 - w) * x
Do you do something special? Is there a mistake or do I miss something?