Percent

<< Click to Display Table of Contents >>

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

Percent

Previous page Return to chapter overview Next page

Definition

Returns a TradesPerformanceValues object in percent.
 

Property Value

A TradesPerformanceValues object that is represented in percent.

 

Syntax
<TradeCollection>.TradesPerformance.Percent

 

 

Examples

ns

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