Bot

 
How do I get the bot to open and close an order? It can be either a buy or a sell, but only once. He opens and closes an order, sends me a warning, and does it once.
 
You fix your broken code.