RealTest User Guide
RealTest User Guide

 

 

Navigation: RealTest Script Language > Syntax Element Details >

S.TWEQ

 

 

 

 

Category

Test Statistics Arrays

Description

The time-weighted equity of this strategy as of this test date

Notes

If a strategy uses compounded stats (if its S.Compounded is 1) then S.TWEQ is a compounded series of daily returns.

In this case, S.TWEQ starts at $1 and then is multiplied each day by (1 + that day's percent return), resulting in a "growth of $1" series.

A strategy with StartPercent starts at its fraction of $1 instead, e.g. 0.25 for StartPercent: 25.

When a strategy does not use compounding, S.TWEQ is its dollar equity, excluding any CashList or CashInOut deposits and withdrawals (S.Equity includes them).

Because each strategy follows its own compounding flag, one test can contain both kinds of series, e.g. the Combined and benchmark lines of a TWEQ graph starting at $1 while non-compounded strategy lines start at the account size. To plot a strategy or benchmark on the same scale as the rest, set its Compounded statement explicitly, e.g. Compounded: False on a benchmark in a non-compounded test. (For a strategy with no Allocation formula this also changes its default allocation, and therefore its position sizes.)

The compounded series shows a strategy's performance in its own terms — the growth of $1 riding its daily returns — which makes it the right graph to look at when a strategy's dollar equity line in a combined test is distorted by combined-account position sizing (see Asset Allocation and Position Sizing).

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC