added visuals and EMA aglorithm