Not exactly the same time... But if a buy trade is running and A sell condition is met it will still Sell 
Also it is not trailing the SL as i want.
What I want is for the bot not to place a new trade as long as there is a current trade running.
Also I want it to trade it Sl a certain pips away from current price once it enters into profit at a certain pip.
For example price is 13pips in profit. SL is trailed into profit by 8pips (5pips) difference from current price)
And it runs like that till it hits TP/SL.
My project link is in the first post.
Please help send adjustment or opinions. Thanks