ProfitFactor

View as Markdown

Definition

Returns the profit factor.

Property Value

A double value that represents the profit factor.

Syntax

\<tradecollection\>.TradesPerformance.ProfitFactor

Examples

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