Difference between revisions of "Portfolio NetProfit"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, indicating the total currency value of all completed trades for a portfolio. ==== Usage ==== <syntaxhighlight>Portfolio_NetProfit</syntaxhighligh...")
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
Returns a numerical value, indicating the total currency value of all completed trades for a portfolio.   
 
Returns a numerical value, indicating the total currency value of all completed trades for a portfolio.   
  
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>Portfolio_NetProfit</syntaxhighlight>  
 
<syntaxhighlight>Portfolio_NetProfit</syntaxhighlight>  
 
   
 
   
==== Notes ====  
+
== Notes ==
This function can only be used in signals intended to be used with the Portfolio Backtester.  
+
* This function can only be used in signals intended to be used with the Portfolio Trader.
+
* The value is returned in the currency specified in Portfolio Trader: '''Portfolio Settings -> Base Currency.'''
==== Example ====
+
* Use [[Portfolio GrossProfit]] to get the gross profit for the portfolio, and refer to the [[Portfolio GrossLoss]] reserved word to get the portfolio's gross loss.
<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  
+
== Examples ==
 +
<syntaxhighlight>Portfolio_NetProfit</syntaxhighlight>
 +
* Will return a value of 20 if there were winning trades with results of 25 and 10, and losing trades with results of -5 and -10.
 +
* Will return a value of -15 if there were winning trades with results of 10 and 5, and losing trades with results of -20 and -10.
 +
* Will return a value of 0 no trades were completed during the entire trading period.
 +
 
  
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]]
 
[[Category:Portfolio Strategy Performance]]

Latest revision as of 17:23, 24 July 2014

Returns a numerical value, indicating the total currency value of all completed trades for a portfolio.

Usage

Portfolio_NetProfit

Notes

  • This function can only be used in signals intended to be used with the Portfolio Trader.
  • The value is returned in the currency specified in Portfolio Trader: Portfolio Settings -> Base Currency.
  • Use Portfolio GrossProfit to get the gross profit for the portfolio, and refer to the Portfolio GrossLoss reserved word to get the portfolio's gross loss.

Examples

Portfolio_NetProfit
  • Will return a value of 20 if there were winning trades with results of 25 and 10, and losing trades with results of -5 and -10.
  • Will return a value of -15 if there were winning trades with results of 10 and 5, and losing trades with results of -20 and -10.
  • Will return a value of 0 no trades were completed during the entire trading period.