NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

Currency

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Returns a TradesPerformanceValues object in currency.
 

Property Value

A TradesPerformanceValues object that is represented in currency.

 

Syntax
<TradeCollection>.TradesPerformance.Percent

 

 

Examples

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

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