Kindly help.

My EA opens very many trades but closes none. Could anyone tweak the code so that there is only one open trade at a time.Thanks guys
Files:
BuySell.mq4  1 kb
please check this ea
Files:
BuySell.mq4  2 kb
Hi. Thanks for the update. Is there a way for the expert to open a new trade every time a new candle opens