==== Notes ====This function can only be used in signals intended to be used with the [[:Category:Portfolio_Backtesting|Portfolio Backtester]].
==== Example ==Examples ==<syntaxhighlight>Portfolio_GrossProfit will </syntaxhighlight>Will return a value of 50 if there were a total of four winning trades, at with results of 10, 5, 20, and 15 .
<syntaxhighlight>Portfolio_GrossProfit will </syntaxhighlight>Will return a value of 0 if no winning trades were completed during the entiretrading period </syntaxhighlight>.