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:

When using Currency Conversion, note that quantities calculated with QtyType: Shares are NOT converted. Quantities expressed in Shares (or Contracts) are interpreted as verbatim share (contract) counts. Divide your Quantity formula by FxRatio if you want your shares-type quantities converted. Quantities calculated as Value or Percent, on the other hand, are always FX-converted automatically.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC