Can i do time based trading using algos?

Suppose if i want to buy 111 quantity of stock of any NSE listed company at market price at 9:00 am and automatic squares off at 9:15 ,then what would be the script code ?

your condition is related to automated trading with respect to time, it is not possible to write with tradescript

Then is this available in AFL ???