Performance
Previous Topic  Next Topic 

Definition

Performance is the parent object that holds all trades and trade performance data generated by a strategy.




Methods and Properties

AllTrades

Gets a TradeCollection object of all trades generated by the strategy

LongTrades

Gets a TradeCollection object of long trades generated by the strategy

RealtimeTrades

Gets a TradeCollection object of real-time trades generated by the strategy

ShortTrades

Gets a TradeCollection object of short trades generated by the strategy


Examples

protected override void OnBarUpdate()
{
    // Print out the number of long trades
    Print("The strategy has taken " + Performance.LongTrades.Count + " long trades.");
}