explain maybe extra criterias needed to calculate loss
This commit is contained in:
parent
0d3542537e
commit
84aac56dd3
@ -13,7 +13,8 @@ SLIPPAGE_PERCENT = 0.001
|
|||||||
|
|
||||||
class CalmarHyperOptLoss(IHyperOptLoss):
|
class CalmarHyperOptLoss(IHyperOptLoss):
|
||||||
"""
|
"""
|
||||||
Defines the calmar loss function for hyperopt.
|
Defines the calmar loss function for hyperopt (you maybe need to add other criterias
|
||||||
|
like the number of trades expected and the max duration expected).
|
||||||
Calmar ratio is based on average annual rate of return for the last 36 months divided by the
|
Calmar ratio is based on average annual rate of return for the last 36 months divided by the
|
||||||
maximum drawdown for the last 36 months.
|
maximum drawdown for the last 36 months.
|
||||||
But you maybe don't have running hyperopt with 36 months of data so we will simulate 36 months
|
But you maybe don't have running hyperopt with 36 months of data so we will simulate 36 months
|
||||||
|
Loading…
Reference in New Issue
Block a user