7 algorithmic trading strategies (that you can use on the SPY):
Algorithmic (“algo”) trading uses computer-driven rules to automate buys & sells (and take human emotion out of trading).
Below are 7 tested strategies on $SPY (S&P 500) & more—plus final pros/cons.
Not financial advice!
1) Scaling In (Averaging Down)
• Buy in portions as price drops
• E.g., allocate 50% at first RSI drop, another 50% if RSI falls an additional 5 pts
• Benefits: Lowers drawdowns, reduces time in market
• Best for mean-reverting assets
2) Sell the Rip
• Original RSI exit ⇒ large drawdowns
• “Q’s exit” rule: Sell if close > previous day’s high
• Outcome: Smoother equity curve, minimized prolonged dips
• Focus on timely exits vs. strict RSI signals
3) 1st Trading Day Strategy
• Buy at close on last trading day of the month, sell at close on the 1st trading day of next month
• Historically outperforms random day returns
• Variation: “Turn-of-the-month” (last 5 days + first 3 days) captures most market gains
4) 200-Day MA Pullback
• Trade only if $SPY > 200-day moving average (bullish filter)
• Buy on short-term price weakness (pullbacks)
• Typically invested ~30% of the time
• Less exposure vs. buy-and-hold, but still captures upside
5) Fabian Timing Model
• Weekly check: $SPX, $DJIA, & Utilities vs. 39-week MA
• If all 3 > 39-week MA ⇒ stay long $SPY
• If ≥ 2 < 39-week MA ⇒ exit
• Historically outperforms buy-and-hold with ~50% market exposure
6) Meb Faber Momentum
• Assets: $SPY (stocks), $TLT (bonds), $GLD (gold)
• If 3-month MA > 10-month MA ⇒ invest; else ⇒ stay out
• Historically ~13% annual returns w/ lower drawdowns
• Performance dipped post-2015 but still a classic momentum model
7) Simple Mean Reversion
• Just 1 buy variable + 1 sell variable (S&P 500)
• ~15% annual return since ’93, only ~35% time in market
• Sharply lower drawdowns vs. buy-and-hold
• Shows power of straightforward rule sets
How to build an algorithmic trading system with Python
(based on 3 years of fixing mistakes and gaining confidence + results)
A thread:
Today I want to share a little bit about what I've learned along my journey in algorithmic trading.
It took me 3 years to grow my confidence.
I made a ton of mistakes. But now my portfolio is $6,500,000.
I'm still learning. But here's what worked for me:
1) Data Sourcing & Quality
• Start with reliable financial data.
• Scrub for inconsistencies & fill missing values.
• Free data sources exist, but for serious work, consider paid APIs (e.g., from broker APIs or market data providers).
How to create your own "mini" hedge fund with algorithmic trading and Python
A thread 🧵
1. What is a Hedge Fund
Hedge funds pool money from wealthy individuals or institutions to seek higher, risk-adjusted returns across multiple markets.
While they often strive to outperform benchmarks like the S&P 500, the focus is usually on lowering risk (drawdowns) rather than purely maximizing returns.
Financial Statement Analysis with Large Language Models (LLMs)
A 54-page PDF:
The paper investigates whether an LLM can successfully perform financial statement analysis in a way similar to a professional human analyst.
The paper provides standardized and anonymous financial statements to GPT4 and instructs the model to analyze them to determine the direction of future earnings.