ProfitFactor

<< Click to Display Table of Contents >>

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

ProfitFactor

Previous page Return to chapter overview Next page

Definition

Returns the profit factor.
 

Property Value

A double value that represents the profit factor.

 

Syntax
<TradeCollection>.TradesPerformance.ProfitFactor

 

 

Examples

ns

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