Navigation: Realtest Script Language > Syntax Element Details >

MaxPositions

 

 

 

 

Category

Strategy Elements

Description

Open position count limit for a strategy or group of strategies

Input

Any formula specifying a count

Notes

In legacy mode this formula is evaluated before new positions are entered each day. In Top-Down Mode MaxPositions is evaluated during the setup selection process. Read "Entry" as "Setup", EntryScore as SetupScore, "position entered" as "setup kept", etc. in all references below when using top-down mode.


When present, this formula is evaluated before new positions are entered each day.

If MaxPositions returns 0 then no new positions can be entered.

If MaxPositions is not specified then there is no limit placed on the number of open positions.

When entries have to be skipped because of this position count cap, EntryScore is used to determine which positions are entered and which are skipped. Entries skipped for this reason display "max positions" in the Reason column of the Trade List if Skipped was included in the KeepTrades setting when the test was run.

See Also: Backtest Engine Details and Capacity Constraints

 

 

 

 

Copyright © 2020-2023 Systematic Solutions, LLC