For the answer see User KB:
http://www.amibroker.org/userkb/2007/07/14/preventing-repeat-orders-and-whipsaws/
BTW: Please read How to use this site site as your post was incorrectly formatted and yet again I had to fix formatting of your post. Really I have better and more important things to do than reformatting each and every new post just because new user fails to read the rules.