Suppose I enter a pending order in the current bar.
Then my questions is, in the next bar, the condition checking for the pending order will be done before the body of the script, or after?