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


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, 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 can not be known in advance.

For strategies that enter all setups at market, or to cap the number of limit or stop orders placed to the number you would actually want to be filled (without look-ahead bias), it is recommended to use SetupScore and MaxSetups instead.

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




Copyright © 2020-2021 Systematic Solutions, LLC