NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

Percent

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Returns a TradesPerformanceValues object in percent.
 

Property Value

A TradesPerformanceValues object that is represented in percent.

 

Syntax
<TradeCollection>.TradesPerformance.Percent

 

 

Examples

protected override void OnBarUpdate()
{
    // Print out the avg. profit of all trades in percent

    Print("Average profit: " + Performance.AllTrades.TradesPerformance.Percent.AvgProfit);
}