Try this way, I am using Reliance and assuming that you not doing Intraday.
LTP is 2108, and you want to go long.
Use cover order with market buy order of 2108 with SL of 2078 in the same order
Then seperately enter a Sell Order, which will be “Target Sell at 2150”. This Target sell order has to be GTT/GTC. Since these orders stay even after the day is closed.
One challenge in using this method in Intraday is the separate “Sell” target order will register as “Short” order in the positions. This I learnt, after breaking my head and my wallet a bit
Automating the orders with BO is a challenge, since the volatility is pretty high. We are at 24% while the usual is average 10%.