Skip to content
#

backtesting-engine

Here are 23 public repositories matching this topic...

backtesting.py
zillionare
zillionare commented Apr 30, 2021

this is how Buy & Hold Return is calculated:

        c = data.Close.values
        s.loc['Buy & Hold Return [%]'] = (c[-1] - c[0]) / c[0] * 100  # long-only return

so it's calced use day one and the day last.

Expected Behavior

Buy & Hold Return is used for compare with strategy gain. Therefore, I guess they should started at same time, since the strategy get enough data to w

bug good first issue Hacktoberfest
Stockie

Trading system that aims to buy stocks when they are low and sell stock when they have risen. The time horizon for trades is 2 - 45 days. The strategy has been successfully backtested in version 0.2. Next step: forward test strategy to ensure that it works in practice. Test RL to see if we can can improve results (currently only ~ 5 % of max.)

  • Updated Jun 3, 2020
  • Jupyter Notebook

Improve this page

Add a description, image, and links to the backtesting-engine topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the backtesting-engine topic, visit your repo's landing page and select "manage topics."

Learn more