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.
@Sanchay - I am doing similar thing in python. I get the 1 minute chart into a python pandas dataframe and calculate EMA, MACD, RSI, SMA realtime. The loop continues until my entry criteria is met. Except the last candle all other candles EMA will be static as they are completed candles and matches with ZERODHA. Won't be accurate match with zerodha but just a fraction difference.