==== Notes ==== * This function can only be used in signals intended to be used with the [[:Category:Portfolio_Backtesting|Portfolio Backtester]].* Use [[Portfolio GrossLoss]], [[Portfolio GrossProfit]] or [[Portfolio NetProfit]] to get the total gross loss, gross profit and net profit for all ''completed'' trades for the whole portfolio during the whole trading period.
==== Example ====<syntaxhighlight>Portfolio_OpenPositionProfit will </syntaxhighlight>* Will return a value of 0 if there are currently no open positions within a portfolio , Portfolio_OpenPositionProfit will * Will return a value of 100 if the combined value of all open positionswithin a portfolio has increased by $100 since the positions were entered , Portfolio_OpenPositionProfit will * Will return a value of -50 if the combined value of all open positionswithin a portfolio has decreased by $50 since the positions were entered</syntaxhighlight> .