[BUG] Criteria depending on ReturnCriterion
includes the base
#1076
Labels
bug
Issue describing or discussing an bug in this library
ReturnCriterion
includes the base
#1076
Describe the bug
I don't know exactly if this is a bug, but we should discuss it to make sure that it's correct.
The following critera:
ReturnOverMaxDrawdownCriterion
AverageReturnPerBarCriterion
LinearTransactionCostCriterion
use the
ReturnCriterion
which includes the base for their calculations. Is this correct? Or should we exclude the base by doing:(1) AverageReturnPerBarCriterion:
(2) ReturnOverMaxDrawdownCriterion:
(3) LinearTransactionCostCriterion:
What do you think?
For (1) AverageReturnPerBarCriterion:
The general formula for
ReturnOverMaxDrawdownCriterion
:Return over Max. Drawdown = Total Return / Max. Drawdown
or:
Return over Max. Drawdown = (Total Return - Max. Drawdown) / Max. Drawdown
with the general formula for
TotalReturn
:Total Return = (Final Investment Value - Initial Investment Value) / Initial Investment Value
If we have a
MaxDrawdownCriterion
= 1 (= total loss) andReturnCriterion
= 1 (because we include the base), then we haveReturnOverMaxDrawdownCriterion
= 1. I don't know if this makes sense at all. I think, the "Total Return in percentage" should not include the base value of 100% Am I right? If so, then we should exclude the base from the calculation ofReturnOverMaxDrawdownCriterion
.The text was updated successfully, but these errors were encountered: