Navigation: Realtest Script Language > Syntax Element Details >

MaxEntries

 

 

 

 

Category

Strategy Elements

Description

Caps the number of actual position entries per day

Input

Any formula that returns a count

Notes

MaxEntries is a legacy-mode formula and is not compatible with in-advance order placement.

Use MaxOrders with top-down mode.

The following notes apply only to legacy mode.


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.

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

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 MaxSetups instead of MaxEntries.

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

 

 

 

 

Copyright © 2020-2023 Systematic Solutions, LLC