Is it possible to place orders in sequence?

Say for example BankNifty Futures is trading at 27000.

I want my first BUY order once BankNifty crosses 27050. This is currently doable using trigger price.

I want my second BUY order @ 26950 AFTER the first one is executed.

you can do it through code , but broker needs to support it