Aegis Trading Algorithm: Multi-Asset Swing Trading Bot

Aegis is the “shield” of Trading Engineering Lab: a systematic swing framework designed to protect capital while compounding it steadily across indices, FX and commodities.

 

Why we built Aegis

Most traders either scalp themselves to exhaustion or load up on a single market, hoping to catch the move of the year. Both approaches usually end in the same place: big swings in equity, stress, and eventually a blown account.

Aegis was born from a different question: “How do we build a systematic engine that can survive multiple market regimes and still compound at a healthy pace?”

Instead of chasing huge monthly returns, Aegis focuses on risk-controlled swing trades distributed across several markets and time horizons (multi-day to multi-week). It’s the core component we use when we want the portfolio to behave like a professional fund: stable, diversified and driven by data, not emotions.

 

Not just an “order block strategy”

On the slides you’ll see references to order blocks and liquidity zones. Those are part of the story, but they are only one layer of Aegis. The engine doesn’t enter a trade just because price touches an order block or leaves a fair value gap. Every position is the result of a multi-step decision process that combines:

  • Higher-timeframe structure: weekly and daily trend, key highs and lows, and structural breaks.
  • Liquidity mapping: clusters of stops and resting orders where “engineered liquidity” is likely to be created.
  • Volatility regime filters: the system behaves differently in low-vol vs high-vol environments, avoiding extreme noise.
  • Time-of-day & time-of-week filters: only specific sessions and days are allowed to open new risk.
  • Market-specific conditions: indices, FX and metals each have their own micro-behaviours and filters.
  • Risk overlays: position sizing, maximum exposure per “theme” (for example, risk-on indices), and portfolio-level caps.

The fair value gaps and order blocks you see on the presentation are entry zones inside a much larger decision tree. Without the surrounding filters, they would be just another discretionary pattern. With Aegis, they become the final execution point of a fully-specified model.

 

The research pipeline behind Aegis

Aegis was not coded in a weekend. It went through the same engineering pipeline we use for all of our systems:

  1. In-sample phase: we start by defining hypotheses (how volatility, liquidity and structure should interact) and build a first version of the model. This version is only trained and tuned on a specific slice of historical data.
  2. Out-of-sample validation: once the rules are fixed, the algorithm is tested on completely unseen data. No new parameters are touched. This is where many strategies die; Aegis survived and kept a similar equity profile outside the training window.
  3. Walk-forward phase: we repeat the process over multiple rolling windows – train on one block of data, lock parameters, test on the next block. The goal is not a “perfect curve” but stable behaviour across regimes.

All tests are run on real tick data with commissions, spread and slippage enabled. Unrealistic fills or over-optimised parameter grids are discarded early in the process.

Data quality

Tick data, realistic spread, commissions and slippage included in every simulation.

Robustness checks

In-sample, out-of-sample and multi-year walk-forward runs to avoid curve-fitting.

Scenario testing

Stress tests across risk-on / risk-off periods, low-vol & high-vol environments.

How Aegis actually trades

Aegis is a top-down swing framework. It starts from the higher timeframes and then drills down to execution:

  • 1. Market regime & bias
    The system first classifies the environment (trend vs range, risk-on vs risk-off, volatility level). If the regime is not favourable, it simply stays flat.
  • 2. Structural map
    It identifies weekly and daily swing highs and lows, relevant order blocks and zones where liquidity is likely to be pooled.
  • 3. Liquidity event
    Aegis waits for specific types of liquidity grabs or rejections around those zones. Not every sweep qualifies – only patterns that historically show a statistical edge.
  • 4. Volatility & timing filters
    Before any order is sent, the engine checks volatility, spread and time-of-day. Certain strategies are only allowed during London or New York, others avoid low-liquidity hours entirely.
  • 5. Execution & management
    The trade is placed with a predefined stop loss and target, both derived from structure and volatility. No martingale, no grid, no “averaging down”. Aegis can also reduce risk when the market becomes unstable.

This pipeline makes Aegis selective by design. It is not trying to be in the market all the time; it is trying to be in the market only when the odds are acceptably tilted in our favour.

Markets and timeframes

While Horizon Striker focuses on intraday index trading, Aegis is built for multi-asset diversification. The core version of the engine is designed to work on:

Equity indices

DOW, NASDAQ, S&P 500 and other major indices, traded on H4 and Daily structure.

FX majors

Pairs like EURUSD and GBPUSD, where liquidity behaviour around sessions is well-defined.

Metals & other assets

Gold and selected commodities, added to diversify regime risk and smooth the equity curve.

 

Structural analysis typically uses Daily / 4H timeframes, while entries and stop placement are refined on lower charts when needed. The idea is to trade swings that matter, not the
noise of every candle.

 

Risk management & portfolio role

Aegis was designed first as a risk framework and only then as a trade generator. The algorithm assumes that the future is uncertain and that even good edges can experience long losing streaks.

  • Fixed 1R logic: every trade is expressed in units of risk (R). The user can map 1R to 0.25%, 0.5% or 1% of equity depending on their profile.
  • Portfolio caps: maximum exposure per asset class and per “theme” (for example: total risk in stock indices).
  • No hidden leverage: no martingale, no grid, no “recovery” systems layered on top.
  • Drawdown awareness: the research phase explicitly studies how the system behaves during deep market corrections and prolonged ranges.

In practice, we treat Aegis as the core position-trading engine in our portfolio. Horizon Striker can then be added on top to exploit intraday volatility, but Aegis is what keeps the long-term equity curve sane.

 

What the historical tests showed

Without sharing sensitive numbers publicly, we can summarise the research like this:

  • Aegis maintained a consistent edge between in-sample and out-of-sample periods.
  • Walk-forward runs across multiple years resulted in similar behaviour: periods of sideways equity, followed by strong bursts of performance when the market conditions aligned with the model.
  • Maximum drawdowns remained within ranges that we consider acceptable for a swing strategy using 0.5–1R risk per trade.

Is it perfect? No. No algorithm is. There will be losing months, periods of under-performance and times when Aegis is mostly sitting on its hands. That is the price of robustness. The goal is not to win every week; the goal is to be alive and compounding
five or ten years from now.

 

Who Aegis is for

Aegis is not a “get rich in 30 days” button. It is intended for traders and investors who:

  • Prefer swing trades over staring at the screen all day.
  • Want to diversify risk across several instruments instead of betting everything on one chart.
  • Are comfortable with a professional, data-driven process rather than impulsive decision-making.
  • Understand that realistic performance comes with realistic drawdowns.

If that sounds like you, Aegis is the part of our research that you would likely resonate with the most.

 

Next steps

On this page we’ve only scratched the surface of what Aegis does under the hood. In the private area of Trading Engineering Lab we dive deeper into:

  • Concrete examples of Aegis setups on different markets.
  • How the risk framework interacts with prop-firm rules.
  • How we combine Aegis with Horizon Striker inside a single portfolio.

Until then, keep this idea in mind: a good swing algorithm is less about predicting the next move and more about surviving long enough to let the math work in your favour. Aegis was built precisely for that job.

The Trading Engineer
The Trading Engineer
For over five years I’ve used trading as a real laboratory: I design rule-based strategies, test them on real data with code, bots, and tools I build myself, and deploy them on funded accounts with a verifiable track record. I hold three technical degrees, all completed with top grades, and I bring the same rigor into the markets. I founded Trading Engineering Lab to document this work transparently: no shortcuts, no easy promises, no “signals” or improvised courses—just numbers, journaling, rigorous analysis, and continuous system improvement. I write about systematic trading, risk management, statistical validation of strategies, and how discipline in trading and in life shapes performance. For me, trading is an experiment, not a lottery ticket. If you’re looking for hype, I’m probably not the right fit. If you’re interested in models, data, and process, welcome to the lab.

Artículos relacionados

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Subscribe to our newsletter

To stay up to date with the latest news, offers and special announcements.

I have read and agree to the terms of use page and privacy policy provided in accordance with Article 13 of EU Regulation 679/2016 and I consent to email marketing purposes.

Trending Now