Hi Dhan team,
I am very confused, how to give sell order after buying complete in option trading and also share if any videolink given by dhan
In your dhan trade hul link only buying order placement given where as selling order limit and trigger price which will be smaller or greater while doing automation trading lower level SL order or at higher level target order
let say i have purchase buy call ABCAPITAL ,strick price 400 at 20
then how to write dhan code for sell order stopmarket and stoplimit at lowere level for SL order
trigger_price=20% down price of call buying price
orderid = tsl.order_placement(tradingsymbol=ABCAPITAL , exchange=NFO, quantity=qty,
price=0, trigger_price=16,order_type=“STOPMARKET”, transaction_type=“SELL”, trade_type=“MIS”)
orderid = tsl.order_placement(tradingsymbol=ABCAPITAL , exchange=NFO, quantity=qty,
price=16, trigger_price=16.5,order_type=“STOPLIMIT”, transaction_type=“SELL”, trade_type=“MIS”)
is the above 2 syntax correct and also correct me while selling at higher level
trigger_price=20% higher price of call buying price
orderid = tsl.order_placement(tradingsymbol=ABCAPITAL , exchange=NFO, quantity=qty,
price=0, trigger_price=0, order_type=“MARKET”, transaction_type=“SELL”, trade_type=“MIS”)
orderid = tsl.order_placement(tradingsymbol=ABCAPITAL , exchange=NFO, quantity=qty,
price=0, trigger_price=24, order_type=“LIMIT”, transaction_type=“SELL”, trade_type=“MIS”)
and also can you share how to place modify SL trail syntax if partial profit exit done (in the above SL order example ,what will be synatx for SL trail order.
Regard
Rupali