Sample Backtest Executions
Explore real backtest examples with detailed results and performance analysis
AAPL RSI Oversold/Overbought Strategy
This strategy buys when RSI drops below 30 (oversold) and sells when RSI rises above 70 (overbought).
Strategy Configuration
- Symbol: AAPL (Apple Inc.)
- Period: January 1, 2024 - December 31, 2024
- Entry: RSI < 30 (Oversold condition)
- Exit: RSI > 70 (Overbought condition)
- Timeframe: Daily
Performance Chart
Visual representation would appear hereTop Performing Trades
Entry Date | Entry Price | Exit Price | P&L |
---|---|---|---|
2024-03-15 | $172.50 | $189.20 | +$16.70 |
2024-08-05 | $207.10 | $225.60 | +$18.50 |
2024-10-12 | $218.80 | $231.45 | +$12.65 |
Strategy Code Example
if (rsi < 30) {
enterLong();
}
// Exit Condition
if (rsi > 70 && inPosition) {
exitPosition();
}
TSLA 20/50 SMA Crossover Strategy
This trend-following strategy enters long when the 20-day SMA crosses above the 50-day SMA and exits when it crosses below.
Strategy Configuration
- Symbol: TSLA (Tesla Inc.)
- Period: January 1, 2024 - December 31, 2024
- Entry: SMA(20) crosses above SMA(50)
- Exit: SMA(20) crosses below SMA(50)
- Timeframe: Daily
Performance Chart
Trend-following visualizationTrade History
Entry Date | Entry Price | Exit Price | P&L |
---|---|---|---|
2024-02-08 | $193.60 | $207.90 | +$14.30 |
2024-04-15 | $162.13 | $145.30 | -$16.83 |
2024-09-20 | $241.05 | $218.70 | -$22.35 |
Strategy Analysis
Performance Notes
- Strategy struggled in volatile 2024 market
- Frequent whipsaws reduced profitability
- Consider adding trend filter (ADX > 25)
- May work better in strongly trending markets
SPY Bollinger Band Squeeze Strategy
This strategy identifies low volatility periods (squeezes) and enters breakout trades when price moves beyond Bollinger Bands.
Strategy Configuration
- Symbol: SPY (SPDR S&P 500 ETF)
- Period: January 1, 2024 - December 31, 2024
- Entry: Price breaks above Upper Bollinger Band
- Exit: Price touches 20-day SMA
- Timeframe: Daily
Performance Chart
Volatility breakout patternStrategy Insights
Strengths
- Consistent performance in trending markets
- Good risk-to-reward ratio
- Works well with SPY's characteristics
Considerations
- Requires careful position sizing
- May underperform in choppy markets
- Best with confluence indicators
Optimizations
- Add volume confirmation
- Use ATR for position sizing
- Consider market regime filters
Build Your Own Strategy
Use these examples as inspiration to create your own custom backtesting strategies