Any formula specifying a true/false condition (non-zero means true)
Notes
SetupSkip is evaluated during the top-down setup selection process. If the return value is true (non-zero) then this setup does not become an order and its slot is made available to another setup.
This is in contrast to EntrySkip, which is not evaluated until the entry simulation phase of a backtest.
A negative return value skips the setup and yields the rest of the strategy's current selection turn — no further setups are considered for this strategy until its next turn. This can be useful as a guard when reacting to another strategy's selections within the same phase (available since version 2.0.28.6a).
SetupSkip is often used with Extern to react to another strategy's same-bar order state, e.g. SetupSkip: Extern(@longs, Shares > 0 or IsOrder). Such references are deterministic only when the referenced section is in an earlier EntryPhase — its order state is then final. Within a shared phase, only orders granted in earlier turns of the same bar are visible, so two same-phase strategies watching each other leapfrog turn by turn rather than seeing each other's final state. Assign distinct EntryPhase values as the preferred way to make cross-strategy de-confliction deterministic.