# VWAP Trend Bot ## Overview This is an implementation of the strategy presented in the paper [Volume Weighted Average Price (VWAP) The Holy Grail for Day Trading Systems](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4631351) (2023). The strategy is very basic, initiating long positions when price closes above VWAP and short positions when price closes below VWAP. Trades are held either until price closes in the opposite direction with respect to VWAP or the end of the trading day. ## Backtest Results ### ETFs #### TQQQ, 1 Minute, 2018-2024 Starting from 2018 with TQQQ which is what the authors of the paper did. ![TQQQ, 1 Minute, 2018-2024, Analysis](./backtest-results/tqqq_1m_2018_2024_analysis.png) ![TQQQ, 1 Minute, 2018-2024, Summary](./backtest-results/tqqq_1m_2018_2024_summary.png) #### TQQQ, 1 Minute, 2010-2024 1-minute data for TQQQ from my data provider begins in February 2010. ![TQQQ, 1 Minute, 2010-2024, Analysis](./backtest-results/tqqq_1m_2010_2024_analysis.png) ![TQQQ, 1 Minute, 2010-2024, Summary](./backtest-results/tqqq_1m_2010_2024_summary.png) Unfortunately the results for TQQQ don't look as good as the paper suggests, at least not anymore. #### QQQ, 1 Minute, 2007-2024 1-minute data for QQQ from my data provider begins in April 2007. ![QQQ, 1 Minute, 2007-2024, Analysis](./backtest-results/qqq_1m_2007_2024_analysis.png) ![QQQ, 1 Minute, 2007-2024, Summary](./backtest-results/qqq_1m_2007_2024_summary.png) #### SPY, 1 Minute, 2007-2024 1-minute data for SPY from my data provider begins in April 2007. ![SPY, 1 Minute, 2007-2024, Analysis](./backtest-results/spy_1m_2007_2024_analysis.png) ![SPY, 1 Minute, 2007-2024, Summary](./backtest-results/spy_1m_2007_2024_summary.png) ---