Strategy Architecture: Systematising a Seasonal Gold Breakout
In our latest Strategy Development session, we sat down with Max Nieveld, owner of Profectus AI & trader behind DARWIN: PYE to take a known historical market bias and engineer it into a fully automated, risk-managed trading system.
The objective was to capture the "December Gold Run". This is a historical seasonal anomaly where XAUUSD frequently experiences a strong bullish expansion in late December due to end-of-year liquidity shifts.
Knowing a seasonal bias exists is not an edge. An edge is the mechanical execution of that bias.
Using Profectus AI, a no-code algorithmic builder, we translated this discretionary theory into rigid MQL logic. Here is the step-by-step architecture we built during the live session and the professional mechanics required to make it survive the live market.
1. The Macro Baseline and Target
A professional systematic strategy does not trade constantly. It trades only when the statistical probability shifts in its favour. The first rule is a strict temporal filter.
- The Ignition Date: The algorithm remains completely dormant for 11 months of the year. It only activates on December 19th.
- The Baseline: Upon activation, it records the daily candle's close price and stores it in its memory as the baseline variable.
- The Global Target: It calculates a fixed macro target of 100 points (1,000 pips) above the baseline entry. This becomes the ultimate exit level for the entire sequence. It entirely removes human greed from the equation.
2. The Micro Trigger: The 1-Hour Breakout
Once active, the system drops down to the 1-hour timeframe to look for execution triggers. It does not buy blindly. It waits for short-term momentum to align with the macro bias.
- The Lookback: The system monitors the highest price of the previous 20 to 21 one-hour candles. This represents roughly one full trading day.
- The Trigger: If the current 1-hour candle closes above that 20-candle high, the system prepares to execute a buy order. We wait for the close, not the wick, to filter out intraday noise.
3. The Spread Filter: Protecting the Alpha
This is where retail algorithms fail and institutional logic survives. In late December, market liquidity drops significantly, causing erratic spreads.
Before the algorithm executes the breakout, it checks the current spread. If the spread exceeds a strict, pre-defined maximum, the trade is automatically skipped.
Taking a valid breakout in a low-liquidity environment destroys alpha through slippage. Capital protection comes first. Opportunity comes second.
4. Asymmetric Scaling: Risk-Financed Exposure
Because this strategy targets a major seasonal trend, a flat 1% risk position leaves significant alpha on the table. The algorithm aggressively stacks positions as the trend develops. It does this with strict structural constraints to prevent ballooning the account risk.
Max demonstrated a dynamic scaling model:
- Initial Entry: The system buys the initial breakout.
- Validation: Once Trade 1 reaches a confirmed level of floating profit (for example, +0.5%), the system is authorised to execute Trade 2 on the next valid 1-hour breakout.
- The Risk Neutraliser: The moment Trade 2 executes, the algorithm modifies the stop loss of Trade 1 to match the stop loss of Trade 2. This locks in profit on the first position and finances the risk of the second.
This repeats for Trade 3 and Trade 4. The overall account drawdown risk remains flat, while the upside exposure compounds.
5. Failsafe's: Price and Time Exits
A systematic strategy must have rigid rules for turning itself off. We programmed two exit protocols.
- The Price Exit (Target Hit): If the price reaches the initial +100 point target established on December 19th, it immediately closes 100% of open positions. It then switches an internal variable to restrict trading, forcing the bot into dormancy until it is manually reset the following year.
- The Time Exit (Capital Efficiency): Markets do not always adhere to historical averages. If 40 days pass and the target is not reached, the system forces a closure of all trades at the current floating P&L and goes dormant. Holding dead positions ties up margin that could be deployed elsewhere.
The Architecture of an Edge
By taking a manual idea and translating it into quantifiable rules, you can finally backtest and verify the exact mechanics of your edge.
You no longer need a computer science degree to build this infrastructure. Using visual block builders, the software handles the syntax while you handle the architecture.
Watch the Build: See exactly how these blocks were assembled on screen in the Live Session below 👇
Hear the Philosophy: For a deeper dive into Max’s philosophy on scaling capital and managing his DARWIN (PYE) at Darwinex, listen to his interview on the Darwinex Market Masters Podcast.
Thanks for reading,
Darwinex Zero.
*Darwinex Zero and the domain www.darwinexzero.com are trade names used by Tradeslide Technologies, a company registered in the United Kingdom under number 14398381. The contents of this video are for educational purposes only and should not be construed as financial and/or investment advice.
