I tried both the ways as above ,as soon as I'm placing an order to buy it is executing and along with stop-loss order also executing in the same time.
when I placed buy order SBI price was at 254.6 and I placed order at 258 and it was executed at 254.6 and I was mentioned stoploss=10 and squareoff=10 .my sell order should have been executed when it touched the stoploss ie 244.6 or target 264.6 but it got executed as soon as buy executed.
Could you please look into it and let me know the actual problem ,sorry if my understanding id wrong.
Thanks @vivek !!