TotalCommission

<< Click to Display Table of Contents >>

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

TotalCommission

Previous page Return to chapter overview Next page

Definition

Returns the total commission.
 

Property Value

A double value that represents the total commission.

 

Syntax
<TradeCollection>.TradesPerformance.TotalCommission

 

 

Examples

ns


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