RealTest User Guide
RealTest User Guide

 

 

Navigation: Realtest Script Language > Syntax Element Details >

Adjustment

 

 

 

 

Category

Import Specification

Description

Price data adjustment setting

Syntax

Adjustment: choice

Choices

TotalReturn - all types of dividends are converted to splits

CapitalSpecial - corporate restructure events (mergers etc.) and special dividends are converted to splits

Capital -  (default) no dividend types are converted to splits

None - adjustment information is not imported (not recommended)

Notes

RealTest receives adjusted and unadjusted prices along with split and dividend histories from Norgate and some other sources.

Imported data is then stored and used in unadjusted form so that each price reference on a given date reflects the actual price that was traded on that date.

When necessary for multi-bar indicator calculation or lookback comparisons, on-the-fly adjustment is performed.

See Split Handling for additional details about how this works.

General best practice is to use the default Capital in most cases.

Here are the trade-offs for each choice:

TotalReturn converts all dividends to splits. This makes trades held across an ex-dividend date look like their share quantities were adjusted when they actually would not have been.

CapitalSpecial does the above for special dividends including corporate restructuring events while correctly simulating payout of ordinary dividends.

Capital only treats actual stock splits as splits while simulating payout as a dividend of every other adjustment event. This introduces an occasional large price gap (with corresponding simulated dividend payout) around corporate restructuring events.

Adjustment can optionally be specified separately for each DataSource block in an import definition. This enables your data to include a mix of e.g. TotalReturn and Capital-only adjusted symbols. It is even possible to import the same symbol from the same source both ways by defining two DataSource blocks for the same source and using the IncludeList alias syntax for one of the instances of the symbol.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC