Navigation: Realtest Script Language > Syntax Element Details >







Cross-Sectional Functions


Evaluate this Data or TestData formula only once per symbol and return this same value for all bars.


This is most applicable to something like Top(InfoTRBC, 4) where the result will be the same for all symbols.

Prior to release RealTest would nevertheless evaluate that same formula redundantly for every date of every symbol, and waste memory storing all these redundant values.

For this specific example RealTest now automatically applies #OnePerSym even if not specified.

Add this tag explicitly at the start of any formula if to enforce this behavior.

See also #OnePerDate.

Add both #OnePerDate and #OnePerSym to calculate and store only a single value for all bars of all stocks (this is done automatically for constants and constant expressions).




Copyright © 2020-2024 Systematic Solutions, LLC