Feasiblity of an algorithm using kite.trade APIs

babaramdev
Hi All,

Before getting started with kite.trade APIs, I want to understand if the below strategy is possible to be coded using Python APIs.

Price should be already above 20 DMA
As soon as the price crosses above 3 EMA, buy signal is generated
This needs to be in the 1 hour candles
Although the candles are 1 hour, but the BUY signal needs to be generated as soon as the trigger condition is met (even if it is the 10th or 20th minute of that candle)

SL- 1 % ; Profit - 2%

Thank you.
  • sujith
    Kite Connect is only an execution platform wherein you can place orders, get live market data, fetch orderbook, positions and more.
    Kite Connect doesn't provide any assistance or solutions for writing strategies.
  • shortwire
    @babaramdev yes its possible using any API based platform. But you need to write custom code for generating the 1 hour candle as well as the EMAs. Kite connect will not provide you with that. Historical api from Kite connect will provide you the desired candle, but since you require that if EMA cross happens even while the candle is getting formed and not necessarily closed, hence you cannot rely on candle creation from historical API. From the ticks received, you need to create a 1 minute candle, and from the 1 minute candle you can create a 1 hour candle. On top of these candle data, you can then write a code to create your 2 indicators. On signal crossover, you have to call the trading APIs in Kite connect to place the trade, manage the trade and exit the trade based on your strategy.
  • suraj3003
    Dear

    We can help you out with your above query, It is very much possible in our platform with more customizable options

    Kindly contact: [email protected]
    Call : +91 8879647666
    Website : www.algobulls.com
Sign In or Register to comment.