Ticks

<< Click to Display Table of Contents >>

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

Ticks

Previous page Return to chapter overview Next page

Definition

Returns a TradesPerformanceValues object in ticks.
 

Property Value

A TradesPerformanceValues object that is represented in ticks.

 

Syntax
<TradeCollection>.TradesPerformance.Ticks

 

 

Examples

ns


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