Skip to Content

Signal Lookback

The Signal Lookback is one of Algo Architech’s most powerful entry filters. It bridges the gap between a raw condition being true and the engine actually executing a trade. By requiring your conditions to be true for multiple consecutive candles, it eliminates false breakouts and ensures only high-conviction setups trigger entries.


The Problem It Solves

Consider a simple entry condition: Close > SMA(9).

In choppy markets, price constantly chops above and below the 9-period SMA. Every time price closes even slightly above, a raw signal is generated — leading to excessive, low-quality entries.

Price vs SMA(9) — Without Lookback: Price: ──╱╲──╱╲╲──╱──╱╱── SMA: ────────────────── ▲ ▲ ▲ ▲ ▲ │ │ │ │ │ 5 raw signals fired! (Most are false breakouts)

How Signal Lookback Works

The Lookback parameter demands that the raw condition must be true for N consecutive candles before generating the final execution signal:

Signal Lookback = 3 Candle 1: Close > SMA(9) ✅ Raw Signal 1 → No execution (need 3) Candle 2: Close > SMA(9) ✅ Raw Signal 2 → No execution (need 3) Candle 3: Close > SMA(9) ✅ Raw Signal 3 → ✅ EXECUTION SIGNAL FIRES! ─────────────────────────────────────────────────────────────── If the chain breaks: Candle 1: Close > SMA(9) ✅ Raw Signal 1 Candle 2: Close < SMA(9) ❌ Chain RESET → Counter back to 0 Candle 3: Close > SMA(9) ✅ Raw Signal 1 (starts over)

Key Concept

The Lookback counter resets to zero the moment any candle fails the condition. The chain must be unbroken — consecutive back-to-back confirmations with no interruptions.


The Trading Edge

Think of the Signal Lookback as your ultimate fake-out filter.

If your basic condition is “Price above 9 MA”, the market might trigger a raw signal constantly as price chops around the average. By setting a Lookback of 3, you’re adding a second layer of security.

The engine demands three consecutive, back-to-back raw signals before it trusts the setup enough to generate the final execution signal. You aren’t just reacting to the first twitch of the market — you’re forcing the trend to mathematically prove its conviction before you put a single dollar at risk.


Choosing the Right Lookback Value

LookbackEffectBest For
1 (default)No filtering — executes on first raw signalVery fast scalping, high-frequency
2–3Light filtering — requires brief confirmationStandard intraday (5m–15m) strategies
4–5Moderate filtering — demands sustained momentumSwing setups, reducing noise on volatile indices
7+Heavy filtering — only catches established trendsPositional strategies, very selective entries

Trade-off

Higher Lookback values = fewer false signals, but you’ll enter later into the trend. There’s always a balance between signal quality and entry timing. Backtest different values to find the sweet spot for your strategy.


Visual Comparison

Lookback = 1 (No filter): Lookback = 3 (Filtered): Entries: ▲ ▲ ▲ ▲ ▲ ▲ ▲ Entries: ............▲.........▲ │ │ │ │ │ │ │ │ │ Price: ╱╲╱╲╱───╱──╱╱── Price: ╱╲╱╲╱───╱──╱╱── 7 entries (many false) 2 entries (high conviction only)

Real-World Example

Building a confirmed trend-entry strategy:

Require ALL of: ├── EMA(9) > EMA(21) (Fast EMA above slow — bullish bias) ├── RSI(14) > 55 (Momentum is positive) └── Close > VWAP (Price above institutional average) Signal Lookback: 3 (All conditions must hold for 3 bars)

This means:

  1. Candle 1: All 3 conditions true → Raw signal 1 ✅
  2. Candle 2: All 3 conditions true → Raw signal 2 ✅
  3. Candle 3: All 3 conditions true → Raw signal 3 ✅ → TRADE EXECUTES 🎯

If on Candle 2, RSI dipped to 54 briefly, the counter resets. Only committed, sustained setups make it through.


Configuration Steps

  1. Navigate to the Entry Conditions tab
  2. Set the Lookback field at the top of the entry configuration
  3. Enter a number (e.g., 3)
  4. Build your entry rules as normal — the Lookback applies to the combined output of all rules

Next Steps

Learn how to restrict your strategy to specific trading hours:

→ Next: Time Window

Last updated on