==== Notes ==== This function can only be used in signals intended to be used with the [[:Category:Portfolio_Backtesting|Portfolio Backtester]].
==== Example ====<syntaxhighlight>Portfolio_TotalTrades will </syntaxhighlight>* Will return a value of 5 if there were a total of five completed trades , Portfolio_TotalTrades will * Will return a value of 0 if no trades were completed during the entire tradingperiod</syntaxhighlight> .