trend trader sample algo
Today’s Change (Nov 22, 2026)
—
A symphony is an automated trading strategy — Learn more about symphonies here
About
A simple trend-following strategy: own tech-heavy QQQ when market trends look healthy; otherwise switch to either an inverse Nasdaq fund or short-term Treasuries, depending on which has been stronger lately.
This strategy checks the market every day and puts all its money in just one choice at a time.
1) If the broad U.S. stock market (SPY) is above its 200-day average, it buys QQQ, which is heavily tilted toward big tech names like Apple, Microsoft, and Nvidia.
2) If not, but QQQ itself is above its 20-day average, it still buys QQQ.
3) If neither is true, it picks whichever looks stronger lately: PSQ, which rises when QQQ falls, or SHY, a very conservative short-term Treasury bond fund.
Dynamic trend strategy: Nasdaq tilt in uptrends, defense in risk-off; out-of-sample: ~9.63% return, ~0.53 Sharpe, ~21% drawdown, with positive alpha, adds Nasdaq upside with defined risk to complement the S&P 500.
1M
3M
6M
YTD
1Y
3Y
Max
Performance
Compared to selected benchmarks
| Alpha | Beta | R2 | R | |
|---|---|---|---|---|
| 0.12 | 0.3 | 0.09 | 0.29 |
Performance Metrics
| Cumulative Return | Annualized Return | Trailing 1M Return | Trailing 3M Return | Sharpe Ratio | |
|---|---|---|---|---|---|
| 683.7% | 10.65% | -10.3% | -9.32% | 0.62 | |
| 1,467.85% | 14.48% | -5.23% | -4.24% | 0.78 |
Initial Investment
$10,000.00
Final Value
$156,784.92Regulatory Fees
$194.97
Total Slippage
$1,652.14
Invest in this strategy
OOS Start Date
Feb 25, 2025
Trading Setting
Daily
Type
Stocks
Category
Trend following, tactical asset allocation, nasdaq-100, defensive rotation, inverse exposure, moving average, momentum
Tickers in this symphonyThis symphony trades 4 assets in total