Changes
Created page with "Returns a numerical value, indicating the total currency value of all completed trades for a portfolio. ==== Usage ==== <syntaxhighlight>Portfolio_NetProfit</syntaxhighligh..."
Returns a numerical value, indicating the total currency value of all completed trades for a portfolio.
==== Usage ====
<syntaxhighlight>Portfolio_NetProfit</syntaxhighlight>
==== Notes ====
This function can only be used in signals intended to be used with the Portfolio Backtester.
==== Example ====
<syntaxhighlight>Portfolio_NetProfit will return a value of 20 if there were winning trades at 25 and 10, and losing
trades at 5 and 10
Portfolio_NetProfit will return a value of -15 if there were winning trades at 10 and 5, and losing
trades at 20 and 10
Portfolio_NetProfit will return a value of 0 no trades were completed during the entire trading
period</syntaxhighlight>
[[Category:Portfolio Strategy Performance]]
==== Usage ====
<syntaxhighlight>Portfolio_NetProfit</syntaxhighlight>
==== Notes ====
This function can only be used in signals intended to be used with the Portfolio Backtester.
==== Example ====
<syntaxhighlight>Portfolio_NetProfit will return a value of 20 if there were winning trades at 25 and 10, and losing
trades at 5 and 10
Portfolio_NetProfit will return a value of -15 if there were winning trades at 10 and 5, and losing
trades at 20 and 10
Portfolio_NetProfit will return a value of 0 no trades were completed during the entire trading
period</syntaxhighlight>
[[Category:Portfolio Strategy Performance]]