I am trying to calculate ema in real time that changes every second as it does in zerodha charts. I have got the historical data and used the "close" values to calculate them. Now everything is working fine just that the ema value changes every minute when I take historical data with i minute interval. Now I want to get ema values that are displayed in zerodha that are real time. Kindly help me with the same.