This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Different buy and hold number from different strategies #1727
Comments
Using different strategies leads to different outputs, that is by design. Am I missing some other issue here? |
Shouldn't the buy&hold return be the same? Since I am backtesting the same date range. To my understanding, the buy&hold return is calculated by the end date market price minus start date market price, then divided by the start date market price -- which is independent of different strategies. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This was referenced Nov 17, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
System information
no
Linux
unstable
node:8
I am using docker
Get the package
First start docker
Then get backtest data
Here comes the strange output. trend_ema report -9.96% buy and hold gain, while srsi_macd report -5.48%. Actually, I tried many other strategies, none of them gave me the same number. I am wondering, shouldn't this number be the same from different strategies?
Describe the problem
The output buy and hold gain is different from different strategies.
Source code / Error logs
N/A
The text was updated successfully, but these errors were encountered: