RealTest User Guide
RealTest User Guide

 

 

Navigation: RealTest Script Language > Syntax Element Details >

ApplyInterest

 

 

 

 

Category

Strategy Elements

Description

Determines whether a benchmark earns and pays account interest on its own cash

Choices

True - the benchmark earns and pays interest on its own cash, as the combined account does

False - the benchmark earns and pays no interest (default)

Notes

The interest settings CashIntPct, MarginIntPct, ShortLoanIntPct and ShortPrcdsIntPct model the interest that a broker pays or charges on the cash in an account, so they are applied only to Combined (or to the strategy itself when a test has only one). A Benchmark runs on its own capital and is not part of Combined, so by default it earns nothing on the cash it does not invest.

With ApplyInterest: True, the same daily calculation is applied to the benchmark's own free cash, margin loan and short sale proceeds. The net amount is added to the benchmark's S.Equity and appears in its S.Interest.

Use it for a benchmark that is meant to hold part of its capital in cash, such as a part-index, part-cash benchmark compared with a strategy that is often partly in cash, so that the two are compared like-for-like. Leave it False for a benchmark that should match an outside reference such as a buy-and-hold index: position sizing usually leaves a small amount of cash uninvested, which would otherwise earn interest.

ApplyInterest can be used in a Benchmark section, or in a Template used by benchmarks (strategies that use the same template ignore it). In a Strategy section it is an error.

The risk-free rate from RiskFreeRateSym (S.RiskFreeRate) is the same for every strategy and benchmark, whatever this setting.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC