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
Built for
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.
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
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
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
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
EURUSD by month of the year
Average return and hit rate for each calendar month across EURUSD's history.
ANALYZE seasonality EURUSD
USDJPY by day of the week
Average return and volatility for each weekday: do Mondays or Fridays behave differently?
ANALYZE dayofweek USDJPY
Run it on your own question
Sign in and press Try it on any step, or ask for a short demo on your data.
More financial markets use cases
- Global & emerging markets: Dubai vs USEM funds, Gulf allocators, global macro PMs
- FX: market snapshotFX traders, macro desks and treasury teams
- FX: trend & momentumFX trend followers and systematic macro
- FX: volatility & riskFX risk managers, options traders and treasury
- FX: dollar & cross-assetCross-asset allocators and macro strategists