All Strategies
Trend FollowingUSDCHF

EMA Crossover for USDCHF (USD/CHF)

Two exponential moving averages — buy when the fast crosses above the slow, exit when it crosses back.

Indicators

EMA 9, EMA 21

Recommended Timeframes

1h, 4h, 1d

Symbol Volatility

medium

Trading Sessions

London, New York (24/5)

Why EMA Crossover Works on USDCHF

The EMA crossover is the textbook trend-following strategy. A fast EMA (typically 9–13) reacts to recent price; a slow EMA (21–50) tracks the broader trend. The crossover marks a regime change. It captures large directional moves in trending markets and fails predictably in chop — making it easy to layer with a regime filter.

USD/CHF often inverts EUR/USD. Range-bound for long stretches, then violent SNB-driven breakouts. Bots should layer in volatility filters.

Forex pairs trade with tight spreads, deep liquidity, and predictable session-based behavior. The strategy below earns its edge during the active sessions for this pair.

Best For

  • • Strong directional trends
  • • Higher timeframes (≥1H)

Avoid In

  • • Tight ranges
  • • Pre-news drifting

Pine Script Source

Copy this into PineForge — backtest on USDCHF or any supported symbol, then deploy as a live bot.

ema-crossover.pinePine Script v5
//@version=5
strategy("EMA Crossover 9/21", overlay=true)

fast_ema = ta.ema(close, 9)
slow_ema = ta.ema(close, 21)

if ta.crossover(fast_ema, slow_ema)
    strategy.entry("Long", strategy.long)

if ta.crossunder(fast_ema, slow_ema)
    strategy.close("Long")

Backtest EMA Crossover on USDCHF in 30 seconds

Sign up for PineForge, paste this Pine Script, and run a 1-year backtest on real USDCHF data — no credit card required.

Related Strategies

We use cookies for analytics and ads measurement. See our privacy policy.