Will a trade be opened by EA twice as the next tick arrives before the trade is recorded?

 

I am trying to develop a high-speed scaler EA.

Let's say an EA tries to open a trade. Before the trade is recorded the next tick arrives. So the EA thinks the trade is not opened yet.

Will the EA try to open the trade again, resulting in two similar trades?

In other words, will the EA block until the opening of a trade is confirmed?

 
You can check that the EA only opens 1 order per bar. Thus, your concerns will be erased
 
Chong Lip Phang: Let's say an EA tries to open a trade. Before the trade is recorded the next tick arrives. So the EA thinks the trade is not opened yet.

New tick arrives, and it is put in the event queue. EA is unaffected.