diff --git a/03 Writing Algorithms/02 Initialization/10 Set Algorithm Settings.html b/03 Writing Algorithms/02 Initialization/10 Set Algorithm Settings.html index 83e9ec5ac8..915f9eec22 100644 --- a/03 Writing Algorithms/02 Initialization/10 Set Algorithm Settings.html +++ b/03 Writing Algorithms/02 Initialization/10 Set Algorithm Settings.html @@ -65,6 +65,13 @@
StalePriceTimeSpan
TimeSpan
timedelta
| Default Value: TimeSpan.FromHours(1)
timedelta(hours=1)
+ TradingDaysPerYear
trading_days_per_year
Number of trading days per year for this Algorithm's portfolio statistics.
+Data Type: integer
int
| Default Value: 252
WarmUpResolution
warm_up_resolution
WarmUpResolution
Settings
settings
, update some of the preceding properties.
Settings.RebalancePortfolioOnSecurityChanges = false;-
self.settings.rebalance_portfolio_on_security_changes = False+
Settings.RebalancePortfolioOnSecurityChanges = false; +Settings.TradingDaysPerYear = 365;+
self.settings.rebalance_portfolio_on_security_changes = False +self.settings.trading_days_per_year = 365
To successfully update the FreePortfolioValue
free_portfolio_value
, you must update it after the Initialize
initialize
method.
The StatisticsResults
object tracks all the statistics of your algorithm. You can access the statistics anywhere in your algorithm where you have a reference to the algorithm class. Some of these statistics are a function of the risk free interest rate.
The StatisticsResults
object tracks all the statistics of your algorithm. You can access the statistics anywhere in your algorithm where you have a reference to the algorithm class. Some of these statistics are a function of the risk free interest rate and the number of trading days per year.
Runtime statistics show the performace of your algorithm at a single moment in time. Some of these statistics are a function of the risk free interest rate.
\ No newline at end of file +Runtime statistics show the performace of your algorithm at a single moment in time. Some of these statistics are a function of the risk free interest rate and the number of trading days per year.
\ No newline at end of file