RealTest User Guide
RealTest User Guide

 

 

Navigation: Realtest Script Language >

Item Name Overrides

 

 

 

 

RealTest allows user-defined item names to be re-used within the same script section.

RealTest does NOT allow the same name to be used in different sections, e.g. a Data item and a Library item could not have the same name.

The last instance of a named formula (across all instances of the section it's defined in) becomes the formula assigned to that name.

As an example, consider the following:

The active script, script1.rts, will use as its universe the historical constituents of the S&P 500 index, despite including script2.rts which had defined Universe to be the Nasdaq 100 constituents.

However, if script1.rts is rearranged like this:

Then it will be using the Nasdaq universe.

The last encountered instance of a name becomes the definition of that name in the final combined script.

If you have some items that you don't want to be overridden, the easiest solution is to simply assign a globally-unique name to each such item.

If you prefer to use the same name for different items in different scripts without risk of override, you can use Namespace to differentiate them when those scripts are combined.

 

 

 

 

Copyright © 2020-2025 Systematic Solutions, LLC