# Combined SPY and TQQQ Algorithm

Combines a dynamic SPY strategy with a risk-managed TQQQ approach.

Canonical: https://prismaticalgos.com/compendium/algo/11320-combined-spy-and-tqqq-algorithm
Record ID: 11320
Catalog rank: 2134 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://github.com/brayvid/trading-algorithm
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

Claim warnings: VERY THIN SAMPLE: 11 trades. Performance figures over so few trades are indistinguishable from luck.

## Recorded profile

- symbols: SPY, TQQQ
- timeframes: any
- sessions: any
- market_regime: volatile

## Indicators

- ATR: {}; applied to: close
- RSI: {}; applied to: close
- SMA: {"period": 9}; applied to: close
- SMA: {"period": 21}; applied to: close

## Recorded long-entry rules

- short-term SMA crosses above long-term SMA with adjusted thresholds by ATR and RSI

## Recorded short-entry rules

- short-term SMA crosses below long-term SMA with adjusted thresholds by ATR and RSI

## Recorded exit rules

- TQQQ exits on 30% drawdown from peak price
- SPY exits based on market conditions

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: not explicitly stated
- Take profit: not explicitly stated
- Position sizing: allocation_spy = 30%, tqqq_drawdown_threshold = 40% for aggressive strategy; allocation_spy = 70%, tqqq_drawdown_threshold = 30% for conservative strategy
