SetupAlpha (@SetupAlpha) header
SetupAlpha (@SetupAlpha) profile picture

Backtests for RealTest and Python. Costs included, survivorship-free data, stress-tested. Free strategy → https://nitter.cf/t.co/mLv9orVcpj

Substack →
Joined September 2023
Photo by SetupAlpha (@SetupAlpha)Photo by SetupAlpha (@SetupAlpha)Photo by SetupAlpha (@SetupAlpha)Photo by SetupAlpha (@SetupAlpha)Photo by SetupAlpha (@SetupAlpha)Photo by SetupAlpha (@SetupAlpha)Photo by SetupAlpha (@SetupAlpha)Photo by SetupAlpha (@SetupAlpha)Photo by SetupAlpha (@SetupAlpha)Photo by SetupAlpha (@SetupAlpha)
Systematic trading is like rolling a snowball uphill. At first you don't see the process, but over time you find momentum taking over and doing the heavy lifting for you. All-Weather Low-Drawdown Portfolio: setupalpha.com/products/all-…
13
3
1
123
14,023
IBKR moves US stocks to 23x5 on Dec 6 (Sun 9 PM to Fri 8 PM ET). Two things to check in live setups: 1. Direct OVERNIGHT orders get rejected (use SMART) 2. Outside RTH now fills from 9 PM ET
10
1,126
"Mean reversion holds for 3 days, survivorship bias doesn't matter." S&P 500 MR (2000–2026): • Point-in-Time: $963k (8.8% CAGR) • Current S&P 500: $1.88M (11.5% CAGR) A "tiny" 2.7% annual bias doubled the ending wealth. Even for short holding periods, always backtest using survivorship-bias-free data.
3
52
3,409
Would a SetupAlpha strategy have improved your portfolio? 0:50 Export your equity curve 1:05 Upload to Portfolio Builder 2:12 Test a 50/50 split 2:30 Compare drawdowns and correlation In this backtest: > sharpe ratio rose from 0.77 to 1.22 > max drawdown fell from 18.37% to 14.83%
3
262
Black Friday is here, and I’ve already made a few purchases. 1. A stack of books 2. Trading data for new markets 3. A research subscription 4. A new keyboard What about you? Have you picked up anything interesting this Black Friday?
2
288
Replying to @KayvenTrades
Thank you so much!
1
13
One trader uses a flight tracker to research airline stocks. Before earnings, he checks → How many planes are flying → How many are parked → Which routes have changed Then he compares what he sees with what analysts expect. One of 60+ trading ideas in the article below:
1
3
429
Would you trade a strategy that makes $12 per trade before costs? +$12 from the trade −$4 in commissions −$9 from getting a worse price than the backtest assumed You’re down $1 per trade. This article covers 60+ ways traders look for an edge. It starts with what it costs to trade.
1
1
273
What gives traders an edge? This article covers 60+ ideas, from lowering trading costs to testing how stocks behave around earnings and at month-end. It explains why each idea might work and what you’d need to try it.
9
660
Download the free RealTest script for the 15-minute SPY and QQQ intraday breakout shown in this video: setupalpha.com/products/spy-… Free 5-minute data (CSV) - QQQ setupalpha.com/products/qqq-… - SPY setupalpha.com/products/spy-… 5-minute SPY strategy on Substack setup4alpha.substack.com/p/a… Premium strategies with in-sample and out-of-sample tests setupalpha.com/collections/r…
131
Backtest a 15-minute breakout on $SPY and $QQQ in RealTest. 0:18 Import the free 5-minute data 1:08 Set up the 15-minute test 1:51 The Keltner breakout signal 2:22 Sizing, costs and trade rules 3:24 Backtest results 3:42 Inside a trade 4:07 What I’d test next
1
1
561
Replying to @sharks37
You can see the equity curve of the backtest results in the image. This is a demo strategy that I don’t trade live, but it’s a good starting point for traders who are new to RealTest and want to learn how to build a simple backtest (good template).
1
1
160
Full RealTest script (.rts) + Python code + Rules, free download: setupalpha.com/products/free…
1
234
I tested a 5-rule S&P 500 (stocks) dip-buying strategy from 2000 to 2024. > 67.1% win rate across 1,419 trades > 14.2% average market exposure > -18.37% max drawdown > +17.0% in 2022 and -3.1% in 2008 Entries fill intraday on resting limits and must trade 0.1% below LowerBand to trigger, with $0.005/share commissions ($1 min). Full rules in the comments below:
2
2
18
1,307
$NVIDIA broad reinstates Jensen Huang as CEO: Sharp rebound after heavy selling
261
Full RealTest script (.rts) + Python code + Rules, free download: setupalpha.com/products/free…
1
2
467
Here is the S&P 500 Bollinger Band mean reversion model I give away for free. Daily data. Up to 10 positions. One exit rule. Here is the core logic behind the backtest: LowerBand = MA(C, 20) - 2.5 * StdDev(C, 20) C = daily closing price. Universe = historical S&P 500 stocks, long only. A stock qualifies at the close when all five conditions hold. - C > MA(C, 200) - MA(C, 200) is higher than the prior day - MA(C, 50) > MA(C, 100) - SPY RSI(2) < 50 - Stock RSI(2) < 50 For each qualifying stock, place a next-day limit buy at LowerBand (10% of equity per position). If more qualify than open slots allow, rank by 200-day return (highest first). Exit at the next open whenever Stock RSI(2) > 70 at the close. Entries fill intraday on resting limits and must trade 0.1% below LowerBand to trigger, with $0.005/share commissions ($1 min).
4
6
1
56
6,487