Points

<< Click to Display Table of Contents >>

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

Points

Previous page Return to chapter overview Next page

Definition

Returns a TradesPerformanceValues object in points.
 

Property Value

A TradesPerformanceValues object that is represented in points.

 

Syntax
<TradeCollection>.TradesPerformance.Points

 

 

Examples

ns

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