My EA triggers double orders

 
Why would my EA that is set to buy or sell 0.1 lot size trigger 2 identical orders?  
And sometimes, for example, if a “Buy is triggered for 0.1 lots of say... EUR/USD, it doubles up buys and sells simultaneously in this way:
BUY EUR/USD 0.1
BUY EUR/USD 0.1
SELL EUR/USD 0.1
SELL EUR/USD 0.1
BUY EUR/USD 0.1
BUY EUR/USD 0.1

... it’s only supposed to be a BUY for 0.1.  

Any help is greatly appreciated. 
 

Because it's coded to do that.

 
Royhobbs9:
Why would my EA that is set to buy or sell 0.1 lot size trigger 2 identical orders?  
And sometimes, for example, if a “Buy is triggered for 0.1 lots of say... EUR/USD, it doubles up buys and sells simultaneously in this way:
BUY EUR/USD 0.1
BUY EUR/USD 0.1
SELL EUR/USD 0.1
SELL EUR/USD 0.1
BUY EUR/USD 0.1
BUY EUR/USD 0.1

... it’s only supposed to be a BUY for 0.1.  

Any help is greatly appreciated. 
It depends on your code. Are you only trading on a new bar, and then only if a current order doesn't exist? Show some code....