NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

Commission

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Returns the total commission.
 

Property Value

A double value that represents the total commission.

 

Syntax
<TradeCollection>.TradesPerformance.Commission

 

 

Examples

protected override void OnBarUpdate()
{
    // Print out the total commission of all trades

    Print("Average # bars per trade is: " + Performance.AllTrades.TradesPerformance.Commission);
}