• Products
  • Community
  • Markets
  • Brokers
  • More
Get started
  • Community
  • /Ideas
  • /Semi-active

Semi-active

SPX Long/Short Momentum Algorithm Beats S&P500 By A Huge Margin!This simple algorithm uses Exponential Moving Averages of the S&P 500's Relative Strength Index to trigger buy/sell and short/cover signals on a daily chart. I've backtested the algorithm for SPY (1994-present), SPX (1981-present), SPX500 (1971-present), and it beats the S&P 500 in every occasion. The algorithm cannot correctly time every single crash or correction but for the most part, it can avoid and even profit from most major market downturns. Backtest results show that it would have timed both the 2000 and 2008 crashes beautifully. By the way, a new sell/short signal was generated just a few days ago. The last time this happened was in 2008. Hmm... :) Algorithm Rules: Long Entry/Short Exit = EMA100(RSI50) cross> 50 Long Exit/Short Entry = EMA200(RSI50) cross< 50 Enjoy! ~Kory
AMEX:SPY
by Stable_Camel
22

Select market data provided by ICE Data services. Select reference data provided by FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

More than a product
  • Supercharts
Screeners
  • Stocks
  • ETFs
  • Bonds
  • Crypto coins
  • Crypto pairs
  • CEX pairs
  • DEX pairs
  • Pine
Heatmaps
  • Stocks
  • ETFs
  • Crypto
Calendars
  • Economic
  • Earnings
  • Dividends
More products
  • Yield curves
  • Options
  • News Flow
  • Pine Script®
  • Sparks
Apps
  • Mobile
  • Desktop
Tools & subscriptions
  • Features
  • Pricing
  • Market data
Special offers
  • CME Group futures
  • Eurex futures
  • US stocks bundle
About company
  • Who we are
  • Manifesto
  • Athletes
  • Blog
  • Careers
  • Media kit
Merch
  • TradingView store
  • Tarot cards for traders
Policies & security
  • Terms of Use
  • Disclaimer
  • Privacy Policy
  • Cookies Policy
  • Accessibility Statement
  • Security vulnerability
  • Status page
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Look FirstLook First