Currency

<< Click to Display Table of Contents >>

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

Currency

Previous page Return to chapter overview Next page

Definition

Returns a TradesPerformanceValues object in currency.
 

Property Value

A TradesPerformanceValues object that is represented in currency.

 

Syntax
<TradeCollection>.TradesPerformance.Currency

 

 

 

Examples

ns

protected override void OnBarUpdate()
{
    // Print out the avg. profit of all trades in currency
    Print("Average profit: " + SystemPerformance.AllTrades.TradesPerformance.Currency.AverageProfit);
}