Calculating 5ema and 15 ema

iamsiddhant
Hey, so I am trying to calculate 5ema and 15 ema with the data available for a stock. When i get the data from zerodha historical api, it gives me data from 9:15 to 3:25 for 5 minutes and 9:15 to 3:15 for 15 minutes. but when i see trading view chart it uses, 9:00 and 3:30 data also for 5 ema calculation. please suggest how can i do that with zerodha pricing api?
  • rakeshr
    gives me data from 9:15 to 3:25 for 5 minutes and 9:15 to 3:15 for 15 minutes
    Yes, the candle shows the data once the market starts for the respective exchange.
    To include pre and post-market data, you can use WebSocket streaming and form candle at your end.
Sign In or Register to comment.