RealTimeTrades

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > SystemPerformance >

RealTimeTrades

Previous page Return to chapter overview Next page

Definition

RealTimeTrades is a TradeCollection object of real-time trades generated by a strategy.

 

Syntax

SystemPerformance.RealTimeTrades

 

 

Examples

ns


protected override void OnBarUpdate()
{
    // Print out the number of real-time trades
    Print("The strategy has taken " + SystemPerformance.RealTimeTrades.Count + " real-time trades.");
}