All Strategies
BreakoutUS500

Donchian Breakout for US500 (S&P 500)

Buy the highest high of the last N bars — the original turtle-trader strategy.

Indicators

Donchian (50), Donchian (25)

Recommended Timeframes

1h, 4h, 1d

Symbol Volatility

medium

Trading Sessions

New York (Mon–Fri, with extended hours)

Why Donchian Breakout Works on US500

Donchian breakouts buy when price closes above the N-bar high. It captures regime changes — the moment a market wakes up from a range. Fails in chop (every false breakout is a small loss) but the long tail of trending wins more than compensates. Most profitable on volatile assets like XAUUSD and crypto.

The S&P 500 (US500) is the global benchmark equity index. Strong long-term uptrend with regime shifts; momentum and trend bots dominate, mean-reversion works in QE periods only.

Equity indices reflect aggregate corporate earnings, sentiment, and Fed policy. They trend more cleanly than individual stocks and gap less than commodities.

Best For

  • • Volatile commodities and crypto
  • • Trending indices

Avoid In

  • • Tight ranges
  • • Low-volume sessions

Pine Script Source

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

donchian-breakout.pinePine Script v5
//@version=5
strategy("Donchian Breakout", overlay=true)

entry_len = input.int(50, "Entry Lookback")
exit_len = input.int(25, "Exit Lookback")

highest_high = ta.highest(high, entry_len)
lowest_low = ta.lowest(low, exit_len)

if close > highest_high[1]
    strategy.entry("Long", strategy.long)

if close < lowest_low[1]
    strategy.close("Long")

Backtest Donchian Breakout on US500 in 30 seconds

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

Related Strategies

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