AFL code program

Hello I want a simple AFL code. Could you please help me.

Buy X (qty a ) and sell Y (qty b) at time 0930 and square off all positions at time 1445 or when profit reaches 1% whichever earlier with no stop loss for intraday.

Please review this post: How to ask a good question