EquationDB

FX: backtests & seasonality

For systematic FX traders

Test trend and mean-reversion rules on the majors, and check calendar effects, with the same BACKTEST, OUTCOMES and ANALYZE used for stocks.

  • Financial markets
  • 6 steps
  • Runs on live data

How EquationDB answers it

Each step is one query on live data. Run them in order, or open any one and adapt it: change the symbol, the station, the dates or the filter.

  1. Trend following on the majors

    Long each major while it trades above a rising trend structure. Returns, Sharpe, drawdown and trades against buy-and-hold.

    BACKTEST IN fx.majors SINCE 2019-01-01 ENTER WHEN close > sma(50) AND sma(50) > sma(200) EXIT WHEN close < sma(50) COST 1 bps
    Try it →
  2. Short-term mean reversion

    Buy a major after a sharp two-day drop and sell once it recovers, holding at most ten days.

    BACKTEST IN fx.majors SINCE 2019-01-01 ENTER WHEN rsi(2) < 10 EXIT WHEN rsi(2) > 50 HOLD 10 COST 1 bps
    Try it →
  3. Breakouts to 55-day highs

    The Turtle-style channel breakout on currencies: enter on a new 55-day high, exit on a 20-day low.

    BACKTEST IN fx.majors SINCE 2019-01-01 ENTER WHEN close CROSS ABOVE highest(high, 55)[-1] EXIT WHEN close < lowest(low, 20)[-1] COST 1 bps
    Try it →
  4. What happens after an oversold major

    Forward returns after a major turns oversold, with hit rates, against the unconditional average.

    OUTCOMES AFTER rsi(14) CROSS BELOW 30 IN fx.majors SINCE 2019-01-01 FWD 5d, 20d
    Try it →
  5. EURUSD by month of the year

    Average return and hit rate for each calendar month across EURUSD's history.

    ANALYZE seasonality EURUSD
    Try it →
  6. USDJPY by day of the week

    Average return and volatility for each weekday: do Mondays or Fridays behave differently?

    ANALYZE dayofweek USDJPY
    Try it →

Run it on your own question

Sign in and press Try it on any step, or ask for a short demo on your data.

Request a trial

More financial markets use cases