ProfitFactor
<< Click to Display Table of Contents >>
Navigation: NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >
Returns the profit factor.
A double value that represents the profit factor.
protected override void OnBarUpdate() { // Print out the profit factor of all trades Print("Profit factor is: " + SystemPerformance.AllTrades.TradesPerformance.ProfitFactor); }