NinjaScript > Language Reference > Strategy > Position >

Quantity

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Gets the 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());
}