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