Blog/Platform

The Gate Engine: How TradeHook Protects Your Account Automatically

May 6, 2026·5 min read

What the gate engine does

The gate engine is a set of configurable rules that decide whether an incoming signal should be executed. Think of it as a pre-trade checklist that runs in milliseconds before every order.

Rules you can configure

**Session controls**: Define exact time windows when trading is allowed. Signals outside the window are dropped.

**Max daily loss**: If your account hits a defined loss threshold for the day, the gate closes and no further orders are placed until the next session.

**Consecutive loss limit**: After N consecutive losing trades, the gate closes for the day. Prevents revenge trading patterns.

**Allowed symbols**: Only signals for symbols on your allowlist are executed.

How it interacts with the HMM filter

The HMM filter runs first (regime check), then the gate engine runs (risk rules). Both must pass for an order to be placed. You can see which layer blocked a signal in the Gate Monitor.

EOD auto-flatten

At 3:45 PM CT, TradeHook automatically closes all open positions. This prevents overnight risk from building up due to a missed manual close.

Configuring your rules

Everything is configurable from the Settings page on a per-symbol or global basis. Changes take effect immediately — no restart needed.

Ready to automate your strategy?

7-day free trial. No credit card required. Connect your broker in minutes.