ProfitFactor

View as Markdown

Definition

Returns the profit factor.

Property Value

A double value that represents the profit factor.

Syntax

\<tradecollection\>.TradesPerformance.ProfitFactor

Examples

protected override void OnBarUpdate()
{
// Print out the profit factor of all trades
Print("Profit factor is: " + SystemPerformance.AllTrades.TradesPerformance.ProfitFactor);
}