Comment on Managing your Script
If you are talking about doing this using algoZ, then you cannot put a buy at 5710, but you can have a buy condition and also have an exit condition, plus you can mention a stop loss %.
If you just want to put numbers, you will have to place 3 orders separately. First buy it and once executed put the SL and the target price.
Hope this clarifies.