Skip to content
All library documents

SPY Hourly Swing Strategy with EMA, RSI, MACD, and Partial Exits

Article Strategy library · Author: fbearman2000

Summary

This script describes a swing-trading system for SPY on an hourly chart. A long setup occurs when the 5-period EMA crosses above the 13-period EMA while RSI is above 50. The stated exit combines a reverse EMA cross with a MACD cross and a smoothed stochastic condition; configurable stop-loss and take-profit levels provide additional exits. The description also says that reaching twice the expected move triggers a partial profit and resets exit levels from the latest close. Short trades can be enabled and depend on recent oversold conditions.

The script comments say the system targets swings lasting roughly five to six trading days on average over the preceding six years, but provide no supporting performance table or independent validation. The code exposes settings for indicators, position sizing, and risk levels, and notes that settings should be reassessed for instruments other than SPY. Its results may depend on assumptions such as order processing and costs, and the use of lagging crosses can produce delayed or false signals. The provided document ends partway through the source, limiting review of the full implementation.

Key ideas

  • The long entry combines a 5-period and 13-period EMA cross with an RSI reading above 50.
  • The stated exit uses EMA, MACD, and smoothed stochastic conditions alongside configurable stops and targets.
  • The strategy describes partial profit-taking after a move reaches twice the expected amount.
  • Short trades are optional and are described as relying on recent oversold conditions.
  • The claimed average holding period is not accompanied by performance statistics, and the supplied source is incomplete.

Tags

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