Conditional orders

ShaileshChavan999
Hi ,
I want to buy options which has trigger based on Nifty Futures,
for eg:- let us say nifty is about to break 12000 on the upside and i want to execute an 12000 CE based on when nifty will break 12000 it should automatically trigger a trade in 12000CE , which are called conditional orders.

Any idea how do i do this ?
  • dinezh
    @ShaileshChavan999

    it's quite simple

    Eg:

    position = False
    breakout_price = 12000
    if nifty_price > breakout_price and position == False:
    position = True
    kite.placeorder( symbol="NIFTY20NOV{ breakout_price }CE"
    ....etc)
  • dinezh
    dinezh edited November 2020
    This code is just for understanding the idea of the algo you're asking.
    once you understand the idea you can completely automate it
  • ShaileshChavan999
    yes i have to start from scratch , Zero coding knowledge , how do i setup everything ?
Sign In or Register to comment.