Python tools I built to test trading strategies and portfolio ideas against real market data.
Live
Multi-strategy trading backtester that tests five trading philosophies (trend following, mean reversion, breakout, exhaustion reversal, and a 2-of-3 ensemble) on AAPL, MSFT, and SPY from 2018 to 2024, net of commissions and bid-ask spread. Donchian Breakout reached a 0.98 Sharpe ratio vs. 0.76 for SPY, and the ensemble had the smallest max drawdown (-15.4%). Walk-forward testing showed an out-of-sample Sharpe of 0.60 vs. 1.21 in-sample, exposing overfitting and 2022 bear-market risk.
Live
Portfolio optimizer that computes the efficient frontier and three optimal portfolios (Max Sharpe, Min Variance, Risk Parity), with a 10,000-portfolio Monte Carlo simulation and VaR/CVaR risk metrics. Decomposes returns into Fama-French factors and compares performance across bull, bear, and high-volatility market regimes.