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

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