Navigation: Realtest Script Language > Syntax Element Details >







Strategy Elements


Specifies the number of shares or contracts to buy or sell when a position exits on an ExitStop


Any formula specifying a number of shares or contracts


ExitStopQty can be used to model partial stop exits (scaling out of positions or reducing their size).

If ExitStopQty is not specified then then entire position is always exited when an ExitStop triggers.

The ExitStopQty formula must calculate the number of shares or contracts to exit regardless of the strategy's QtyType setting.

To model partial exits for the other exit types, ExitQty and/or ExitLimitQty can also be added to a strategy.

See ExitQty for additional information and an example.




Copyright © 2020-2024 Systematic Solutions, LLC