Order of Execution

Given below are the positions for an Entry condition.

Is it guaranteed that the SELL leg is executed first and then the BUY leg?

No, it is not always in the order.

If you want the Sell to be executed, put a time function so that it can execute the sell first.