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

In the default top-down setup selection mode, Quantity is calculated and constraints (such as MaxInvested) are applied based on the OrderPrice of the EntrySetup.

In Legacy Mode, Quantity is based instead on FillPrice, implying that orders are placed when the market is open or about to open and the likely actual entry price can be known and used to calculate the position size.

To override either of the above defaults specify the QtyPrice choice explicitly.

The following are all equal position sizes in top-down mode:

For Legacy mode substitute FillPrice for OrderPrice above.

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC