Navigation: Realtest Script Language > Syntax Element Details >







Strategy Elements


Ranks potential entries when a strategy has more setups than can be entered


Any formula specifying a numeric value


EntryScore is a Legacy Mode formula. When using the default top-down mode, always use SetupScore to rank your setups.

There is no longer a use case for EntryScore with top-down mode.

The following notes apply only to legacy mode.

Setups with higher scores are entered first.

If EntryScore is not specified, setups will be entered in alphabetical order by symbol.

The number of positions that a strategy can enter per day is determined by evaluating the MaxSetups, MaxEntries, MaxExposure, MaxInvested, and, MaxPositions formulas at entry time.

For strategies that include an EntryLimit or EntryStop, beware that use of an EntryScore formula constitutes a look-ahead error. In fact, the only reason this strategy element exists is to permit either random or specific entry order assumptions to be experimented with to get a feel for the range of possible results given that actual entry order cannot be known in advance.

For strategies that use limit or stop orders and want to cap the number of orders placed to the number you would actually want to be filled (without look-ahead bias), it is recommended to use top-down mode.

For more information on how the backtest engine works, see Backtest Engine Details.





Copyright © 2020-2024 Systematic Solutions, LLC