==== Notes ==== * This function can only be used in signals intended to be used with the [[:Category:Portfolio_Backtesting|Portfolio Backtester]]. ==== Example ====<syntaxhighlight>Portfolio_NumLossTrades will return a value * See [[Portfolio TotalTrades]] and [[Portfolio NumWinTrades]] to get the total number of 5 if there were a completed trades and the total number of five winning trades for the portfolio.* See [[Portfolio PercentProfit]] to get the percentage of winning trades for all completed losing trades in the portfolio.
== Example ==<syntaxhighlight>Portfolio_NumLossTrades will </syntaxhighlight>* Will return a value of 5 if there were a total of five completed losing trades.* Will return a value of 0 if no losing trades were completed during the entire trading period</syntaxhighlight> .