Order of Execution — Tradetron Community
← Community

Order of Execution

Uncategorized 1,673 views

Rajkumar

Given below are the positions for an Entry condition.

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

Mayank Kumar Mittal

No, it is not always in the order.

Alex Sami

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

Tradetron Team Tradetron team

No, legs of the same entry are not guaranteed to go in a fixed order.

For exits, turn on Exit Shorts First (Advanced Settings, under the Tranching section). The short leg is then squared off before the long one. It applies to set exits, Universal Exits and the Exit button on the Deployed page.

For entries, if the hedge (buy) must fill before the sell, put the buy and the sell in separate conditions or sets, with the sell gated on the buy being open (e.g. a runtime variable set when the buy is taken). Test this in Live Offline first.

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.