You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requested custom statistics in Python to better reflect the underlying characteristics of a trading strategy. For equity-based trading strategies, there is no/negligible opportunity cost during non-trading days (i.e. weekends), so their inclusion will underestimate volatility and average returns, consequently impacting metrics like the Sharpe ratio. In the presence of multiple return streams, one may be less concerned with the opportunity cost of their investment / cash positions of a single return stream - particularly those that are discreet in nature - and more concerned with capturing its behavior in absence of an opportunity cost. Custom statistics will allow users to make their own assumptions on the meaningfulness of the aforementioned concepts.
This use case will be covered by #7690, where we are adding a new algorithm setting TradingDaysPerYear where the user can overwrite the default value used for calculating statistics, default to 252, except for crypto brokerages which will use 365
Expected Behavior
Use case: we don't want to consider non-trading and/or no-holdings days in the Statistics.
Actual Behavior
Only C#.
Potential Solution
Create
IStatisticsServicePythonWrapper
and add PyObject overload toSetStatisticsService
.Reproducing the Problem
New feature.
Checklist
master
branchThe text was updated successfully, but these errors were encountered: