|
Category
Test Statistics Arrays
Description
The number of this stat period in a test
Notes
In the context of the Graphs Section, S.Number is also the count of stat periods so far as of this test date.
In the context of the Results Section, S.Number is also the total number of stat periods in the test.
A stat period is one bar of the Settings BarSize: one trading day in a test with a Daily Settings bar size, one week with Weekly, and so on. Strategy bar sizes do not change it.
For example, if a script with a Daily Settings bar size includes a Daily bar strategy and a Weekly bar strategy, and is run for one year, there will by default be 252 stat periods for both strategies, and S.Number will be 252 for the final period of either strategy.
Use the DaysPerYear setting to specify a number of daily stat periods per year other than 252.
With a Weekly Settings bar size, a one-year test has 52 stat periods andS.Number is 52 for the final period.
Because this is a test-level statistic, the value returned will be the same for every strategy (hence no need for "Combined").
|