How to auto square-off an active order if price reaches to a target price?

rakeshkr114
How to auto square-off an active order
(exchange = kite.EXCHANGE_NFO,
order_type = kite.ORDER_TYPE_MARKET,
variety = kite.VARIETY_REGULAR,
product = kite.PRODUCT_MIS)
if price reaches to a target price?
Can we set a target price at the time of placing the order and whenever the option premium price => target price, it will get squared off with profit?
  • sujith
    sujith edited January 31
    You will have to place a market order with opposite transaction type. If market order is not allowed for some reason by RMS then you will have to place a limit order above ltp for buy or limit order below ltp for sell.
  • rakeshkr114
    @sujith So I will have to place another order to square-off the active order opposite transaction type? If yes, I have been doing that to exit the positions. But I wanted to know if there's a way to set a "target price" at the time of placing the first order and whenever the "target price" is reached the position exits. So that I don't have to check for the ltp and exit the trade with a separate order.
  • sujith
    You will have to place a GTT for that.
  • rakeshkr114
    Ok, thanks for your support! :)
This discussion has been closed.