Description
Enhancement description
I was wondering whether the formulas and algorithms used in calculation of stats
could be documented. It would not only add transparency, but also aid in understanding what the assumptions are, and what you are actually calculating.
For example, I was confused why running the tests with different parameters on the same data, would result in different "Buy & Hold Return [%]" returns...? If I buy at the beginning of the period, and hold until the end, my differing indicator parameters should not affect this result for the same time period.
I presume the "Buy & Hold Return [%]" assumes buying when our algorithm makes the first purchase and then holding until the end of the period? Or perhaps the buy is executed when the lookback period of the most laggy indicator ends?
I see there is a disclaimer in the docs for bt.run(), that the trading simulation begins at different points in the time period, based on the provided indicator parameters, which seems appropriate for some values, but not logical for others (e.g. Buy & Hold)?
Code sample
Additional info, images
No response