Code for reading realtime ticks

avinashcherukuri
Hello,

I am trying to write a code to read real time ticks and compare it with a certain defined value. My question is

1) Do we need to parse real time ticks into a database to be able to read and compare?
2) What would be the code to read the OHLC of a tick and compare that to a defined value?

Any info is highly appreciated.

Regards
Avinash
  • sujith
    @avinashsringeri,
    You can just store the ticks in an array and compare it.
    Which Kite Connect client are you using?
    PS: The OHLC value in Kite Ticker is the day's value. All the values will be almost same unless high and low changes.
  • avinashcherukuri
    I am looking to use this data for intra day at intervals of 5 min and 10 min. So for each interval / candle, I want to read the OHLC and make decisions based on that for comparison with a pre-defined value and for trade action.
  • sujith
    sujith edited February 2018
    You need to generate candles using the live market data.
    You can check out this thread to get started.
Sign In or Register to comment.