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