I am trying to write my own client API to execute orders from my desktop. For that i need some information, can you please let me know best way to implement 5, 15 and 1 hour ema into my graph. Ema calculation formula i know, where i am confusing is -> do i need to store tick by tick data while market runs and compute ema on the fly or is there any api method which gives candle details after candle close for example: say now time is 9:30, just fetch 9:25 to 9:30 candle details from kite api and from 9:30+ minutes calculate 5 ema from tick by tick data like that. for every candle close i want to fetch from api to maintain accuracy in case of connection issues in my server/web socket issues
Hi @graviraju, We do have a historical API wherein we provide candle data. You can check out the documentation here. We recommend using the same for backtesting purposes. For live market strategies, we recommend generating candles at your end using the live market data provided on the Websockets API (Kite Ticker). You can take a look at this thread to know more about the candle generation.
You may check out this thread to find some resources, formulas, and examples.
https://kite.trade/forum/discussion/2604/convert-ticks-to-candle#latest
https://kite.trade/forum/discussion/comment/16604/#Comment_16604
https://kite.trade/forum/discussion/comment/17072/#Comment_17072
We do have a historical API wherein we provide candle data. You can check out the documentation here.
We recommend using the same for backtesting purposes. For live market strategies, we recommend generating candles at your end using the live market data provided on the Websockets API (Kite Ticker).
You can take a look at this thread to know more about the candle generation.
You may check out this thread to find some resources, formulas, and examples.