Markets
SPY5,248.32+0.35%
QQQ18,432.10+0.52%
BTC98,420+1.27%
ETH3,812-1.10%
NVDA952.30+1.36%
AAPL178.42-1.19%
TSLA168.90+2.62%
EUR/USD1.0892-0.21%
GC2,342.50+0.36%
CL82.15+1.17%
SOL178.50+3.36%
DXY104.82+0.14%
SPY5,248.32+0.35%
QQQ18,432.10+0.52%
BTC98,420+1.27%
ETH3,812-1.10%
NVDA952.30+1.36%
AAPL178.42-1.19%
TSLA168.90+2.62%
EUR/USD1.0892-0.21%
GC2,342.50+0.36%
CL82.15+1.17%
SOL178.50+3.36%
DXY104.82+0.14%
AL

Algorithms

tf/algorithms

Algorithmic trading, bots, APIs, quantitative strategies, and backtesting.

5 members3 postsCreated about 2 months ago
534
Posted by u/algo_trader_421 min read

Why most backtests are useless — the 7 biases you need to know

After 3 years of algo trading and hundreds of backtests, here's why 90% of backtests you see online are misleading:Survivorship bias: you test on stocks that still exist. The ones that went bankrupt are excluded. Inflates returns.Look-ahead bias: using data that wasn't available at the time of the trade. Even split adjustment can cause this.Overfitting: 20 parameters optimized over 10 years = perfect curve, catastrophic real performance.Slippage ignored: "I made 200%" — with perfect fills at mid-price that you'll never get in reality.Transaction costs: commission + spread + market impact. On a high-frequency algo, it changes everything.Data snooping: testing 50 strategies and keeping only the best one. Probability it works forward: close to zero.Regime change: what worked in 2015-2020 (infinite QE, zero rates) doesn't work in 2024-2026 (high rates, inflation).

5 Comments
389
Posted by u/algo_trader_42

My crypto mean reversion bot does 2.1% per month — code and logic shared

Built a mean reversion bot on ETH/BTC and SOL/BTC pairs. Running for 8 months on Binance.LogicThe ratio between two cryptos tends to revert to its mean. When the 20-day z-score exceeds +2 or -2, I take the opposite position.Results (8 months, $20K)Total return: +18.4% ($3,680)Sharpe: 1.2Max drawdown: -6.8%Win rate: 63%Number of trades: 142Stack: Python, ccxt, PostgreSQL, Grafana for monitoring. Code is on my GitHub (link in comments).

6 Comments
178
Posted by u/swing_king

What is quant trading actually like? Is it just math nerds or can regular traders learn it?

I keep hearing about quant trading and algorithmic strategies but I can't figure out what it actually IS in practice. Is it just writing programs that trade for you? Do you need a PhD in math? Can a self-taught programmer build profitable quant strategies?I know Python decently (data analysis, pandas, some ML) and I've been trading manually for 2 years. Wondering if I should try to automate some of my strategies or if quant trading is a completely different world.

4 Comments