How to set maximum number of order in amibroker afl

hy ,

how i set maximum numbers of order in afl like i want only two orders (entry and exit) if is there any signel come after two signel it should not fire the buy signel

please help

Thanks
SArath