Page 1 of 1

Correlation limits in EAs: approaches and their pitfalls

Posted: Tue Nov 03, 2026 7:30 am
by FXS London Scalper
Adding a correlation filter to a multi-pair EA, so it won't open EURUSD and GBPUSD longs at the same time, sounds simple. Several approaches have known pitfalls.
  • Rolling correlation on short windows: a 20-day window jumps around, so the filter turns on and off for no good reason.
  • Long windows: 120 days reacts too slowly to regime changes, for example a sterling-specific crisis.
  • Correlation on M1 returns: noisy, and dominated by the dollar leg anyway.
  • Counting exposure by currency instead of correlation: simpler, and often more robust.
The currency-exposure approach in practice: convert every open position into exposure per currency, for example long EURUSD 1 lot = +1 EUR, −1 USD. Cap net exposure per currency. A long EURUSD and a long GBPUSD together give −2 USD, which hits the cap even if the pair correlation looks moderate this month.

It's easier to test, easier to explain and doesn't need parameter tuning.

Has anyone made correlation filters work in a live EA?