Concept

Filter-setup-trigger-exit Architecture

Filter-setup-trigger-exit Architecture, also known as StrategySpec anatomy, setup lifecycle state machines, is a Meta & Composition concept. The Library holds 3 implementations, each one a working definition you can pull into Quant.

Top Filter-setup-trigger-exit Architecture indicators

3 total

What is Filter-setup-trigger-exit Architecture?

Filter-setup-trigger-exit architecture decomposes a rules-based strategy into four layered roles. The filter decides whether trading is allowed at all: regime, session, direction, for example a higher-timeframe trend filter. The setup arms a candidate trade when conditions align, such as a pullback reaching a zone. The trigger is the discrete event that actually enters, a close beyond a level or a crossover. The exit owns everything after entry: initial stop, targets, and trailing rules. In code this runs as a small state machine stepping through idle, armed, in-position, and flat.

The value is separation of concerns. Filters answer whether to look, triggers answer when to act, and conflating the two produces systems that enter on context (chronically early) or filter on timing (chronically late). The decomposition also keeps testing honest, because layers can be swapped or removed one at a time to see which is doing the work. Setups usually carry an expiry, a bar count after which an untriggered setup disarms, so stale context cannot fire a fresh entry.

How traders use it

  • As a design template: writing a new system as filter, setup, trigger, exit forces explicit answers about regime, condition, timing, and management instead of one tangled entry condition that mixes all four.
  • As a debugging frame: when a backtest degrades, ablating one layer at a time (run without the filter, loosen the trigger, fix the exit to a simple baseline) attributes the change to a specific role.
  • As the natural home of signal hygiene: cooldowns, one-position-at-a-time limits, and duplicate suppression live between setup and trigger, where they are stated once instead of being patched into every rule.

Related concepts · Signal engineering

Concept family

Meta & Composition

28 concepts mapped · 23 in the Library

Filter-setup-trigger-exit Architecture FAQ

What is the difference between a setup and a trigger in a trading system?

A setup is a state: conditions have aligned and a possible trade is armed, often for a limited number of bars. A trigger is an event: the single, precisely defined occurrence that converts the armed setup into an order. Keeping them separate prevents entering just because context exists, and it lets the setup expire quietly when the trigger never comes, which is a common and correct outcome.

Why separate filters from entry signals in a strategy?

Because context and timing fail differently. A wrong filter puts you in the wrong environment; a wrong trigger gets the timing wrong inside the right environment, and the fixes are different. Separation also enables controlled experiments: hold three layers constant, vary the fourth, and you learn which component carries the edge. A single fused condition can only be tested as a lump, so its failures are hard to diagnose.

Build Filter-setup-trigger-exit Architecture your way.

Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.