TotalQuantity

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

TotalQuantity

Previous page Return to chapter overview Next page

Definition

Returns the total quantity.

 

Property Value

A double value that represents the total quantity.

 

Syntax
<TradeCollection>.TradesPerformance.TotalQuantity

 

 

Examples

ns

protected override void OnBarUpdate()
{
    // Print out the total quantity of all trades
    Print("Total quantity is: " + SystemPerformance.AllTrades.TradesPerformance.TotalQuantity);
}