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 @@

Property: StalePriceTimeSpanTimeSpantimedelta | Default Value: TimeSpan.FromHours(1)timedelta(hours=1)

+ + +

Property: TradingDaysPerYeartrading_days_per_year

+

Number of trading days per year for this Algorithm's portfolio statistics.

+

Data Type: integerint | Default Value: 252

+ +

Property: WarmUpResolutionwarm_up_resolution

@@ -78,8 +85,10 @@

Property: WarmUpResolutionSettingssettings, 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 FreePortfolioValuefree_portfolio_value, you must update it after the Initializeinitialize method.

diff --git a/03 Writing Algorithms/39 Statistics/01 Algorithm Statistics/01 Introduction.html b/03 Writing Algorithms/39 Statistics/01 Algorithm Statistics/01 Introduction.html index 0ec5d76333..7af8c56824 100644 --- a/03 Writing Algorithms/39 Statistics/01 Algorithm Statistics/01 Introduction.html +++ b/03 Writing Algorithms/39 Statistics/01 Algorithm Statistics/01 Introduction.html @@ -1 +1 @@ -

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.

\ No newline at end of file +

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.

\ No newline at end of file diff --git a/03 Writing Algorithms/39 Statistics/02 Runtime Statistics/01 Introduction.html b/03 Writing Algorithms/39 Statistics/02 Runtime Statistics/01 Introduction.html index b315ad6a78..b814337b61 100644 --- a/03 Writing Algorithms/39 Statistics/02 Runtime Statistics/01 Introduction.html +++ b/03 Writing Algorithms/39 Statistics/02 Runtime Statistics/01 Introduction.html @@ -1 +1 @@ -

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