Exit half quanity

Hello sir i have some problem can we exit our half position of F&O stocks and INDEX
can we use GTT order for intraday thgrough algo for this type like Single Leg and TWO LEG