Skip to content
All library documents

SPY Four-Hour Swing Trading with Indicator Filters and VIX Exits

Article Strategy library · Author: fbearman2000

Summary

This Pine Script strategy is designed to identify multiweek swings on a four-hour chart of SPY. Long entries combine a fast EMA crossing above a slower EMA with momentum and trend-strength filters, including RSI, ADX, stochastic readings, a rising close, and a true-range ceiling. Exit logic uses opposing EMA and MACD signals alongside RSI slope and stochastic conditions. The script also allows short trades and configurable stop-loss and take-profit levels.

The risk controls include closing positions when VIX rises above the specified threshold and taking partial profits after a multiple of the expected move, then resetting exits around the latest close. The document says the setup may be unsuitable for high-volatility conditions and calls for adjusting stop and target settings when applying it to other instruments. It supplies indicator logic and configuration options, but no backtest results or evidence supporting its stated suitability. Its thresholds and filters are implementation choices that require validation for the intended market, costs, and timeframe.

Key ideas

  • The long setup combines an EMA crossover with RSI, ADX, stochastic, price, and true-range filters.
  • Exits use opposing moving-average and MACD signals, plus RSI slope and stochastic conditions.
  • Stops and targets are configurable, and the strategy can take partial profits after a specified move.
  • A VIX threshold can force open positions to close.
  • The document gives no performance evidence and advises retuning the settings for other instruments.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.