Problems with buy/sell orders

[Deleted]  
Hi,

I'm building an expert Advisor and I would like to enter only once on a sell and only one on a buy. How do I have to do?
Thanks