project

MACD Trading Strategy Visualizer

A technical indicator and its backtest, shown together.

An interactive web app for visualizing the MACD (moving average convergence divergence) indicator and backtesting strategies built on it against historical stock data.

โ†’ github.com/varunbudati/MACD-Trading-Strategy-Visualizer

What it's really for

MACD is one of the most widely cited technical indicators, and one of the easiest to fool yourself with. Plot the signal alongside a price chart and every crossover looks prophetic โ€” because you're looking at the crossovers that worked.

Putting the indicator and an honest backtest on the same screen makes the gap between "this looks predictive" and "this is profitable after costs" impossible to ignore. Once you subtract transaction costs and slippage, a lot of apparent edge evaporates.

That's a useful lesson to learn on a toy project rather than with capital, and it's the same discipline that makes Implementation Shortfall the right way to score an execution strategy: measure what you actually got, not what the signal said you'd get.

Stack: Python, Streamlit.

Related: Things I've Built ยท TWAP and VWAP