Skip to content

A backtester written in python with NumPy and Pandas, showcasing Dollar-Cost-Averaging (DCA) and DCA with portfolio rebalancing.

Notifications You must be signed in to change notification settings

timvvvht/Backtester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Backtester

A backtester written in python with NumPy and Pandas, showcasing Dollar-Cost-Averaging (DCA) and DCA with portfolio rebalancing.

Strategies tested

  1. DCA on SPY
  2. DCA on SPY and GLD with a 80-20 weighting
  3. DCA on SPY and GLD with a 80-20 weighting, rebalancing once every 2 months
  4. DCA on SPY and GLD with a 80-20 weighting, rebalancing once every 6 months
  5. DCA on SPY and GLD with a 50-50 weighting
  6. DCA on SPY and GLD with a 50-50 weighting, rebalancing once every 2 months
  7. DCA on SPY and GLD with a 50-50 weighting, rebalancing once every 6 months

img

This shows that using a dollar-cost-averaging strategy in the timeframe Jan 2005 to Nov 2020 on only the SPY yields the highest returns out of all other strategies, beating the baseline strategy of no investments by a large margin.

About

A backtester written in python with NumPy and Pandas, showcasing Dollar-Cost-Averaging (DCA) and DCA with portfolio rebalancing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published