RealTest User Guide
RealTest User Guide

 

 

 

 

 

Category

Test Statistics Arrays

Description

Number of stat periods per year, quarter, month or week in the current test

Notes

Specific values are:

•S.BPY = stat periods per year

•S.BPQ = stat periods per quarter (S.BPY / 4)

•S.BPM = stat periods per month (S.BPY / 12)

•S.BPW = stat periods per week (S.BPY / 52)

A stat period is one trading day in a test with a Daily Settings BarSize, and one bar in a test with a Weekly or larger Settings bar size. Strategy bar sizes do not change it.

In a test with a Daily Settings bar size, S.BPY returns DaysPerYear (252 by default), whatever the strategies' bar sizes: a test that combines daily and weekly strategies, or one with only weekly strategies, has 252 stat periods per year. With a Weekly Settings bar size S.BPY returns 52, with Monthly 12, with Quarterly 4 and with Yearly 1.

The purpose of S.BPY is to facilitate calculation of formulas such as ROR that need to "annualize" a value (see Results.rts).

The purpose of the other intervals is to facilitate rolling return graphs of various durations (see Graphs.rts).

Because these are test-level statistics, the values returned will be the same for every strategy regardless of strategy-specific bar size.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC