Quantity

View as Markdown

Definition

Gets the strategy’s current position size.

Property Value

An int value representing the position size.

Syntax

Position.Quantity

Examples

protected override void OnBarUpdate()
{
// Prints out the current market position
Print(Position.MarketPosition.ToString() + " " + Position.Quantity.ToString());
}