==== 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 </syntaxhighlight>* Will return a value of 5 if there were a total of five completed winning trades , Portfolio_NumWinTrades will * Will return a value of 0 if no winning trades were completed during the entiretrading period</syntaxhighlight> .