RealTest User Guide
RealTest User Guide

 

 

Navigation: Realtest Script Language > Syntax Element Details >

QtyType

 

 

 

 

Category

Strategy Elements

Description

Specifies how to interpret the Quantity formula

Choices

Shares - Quantity represents the number of shares or contracts (default if not specified)

Value - Quantity represents the notional value of the position (e.g. dollars) based on entry fill price

Percent - Quantity represents a percentage of current allocation (S.Alloc)

Notes

During setup selection, Quantity is calculated and constraints (such as MaxInvested) are applied based on the OrderPrice of the EntrySetup.

To "look ahead" to the actual entry price when calculating position sizes, specify QtyPrice: FillPrice. 

The following are all equal position sizes:

 

 

 

 

Copyright © 2020-2025 Systematic Solutions, LLC