==== 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 return a value of 5 if there were a * See [[Portfolio NumWinTrades]] and [[Portfolio NumLossTrades]] to get the total number of five completed winning and losing trades Portfolio_TotalTrades will return a value of 0 if no trades were completed during for the entire tradingperiod</syntaxhighlight> portfolio.