Difference between revisions of "Portfolio OpenPositionProfit"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, indicating the current combined profit or loss for all open positions within a portfolio. ==== Usage ==== <syntaxhighlight>Portfolio_OpenPosition...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
Returns a numerical value, indicating the current combined profit or loss for all open positions within a portfolio.  
 
Returns a numerical value, indicating the current combined profit or loss for all open positions within a portfolio.  
 
   
 
   
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>Portfolio_OpenPositionProfit</syntaxhighlight>  
 
<syntaxhighlight>Portfolio_OpenPositionProfit</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.'''
 +
* 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 ====
+
== Example ==
<syntaxhighlight>Portfolio_OpenPositionProfit will return a value of 0 if there are currently no open positions  
+
<syntaxhighlight>Portfolio_OpenPositionProfit</syntaxhighlight>
within a portfolio  
+
* Will return a value of 0 if there are currently no open positions within a portfolio.
 +
* Will return a value of 100 if the combined value of all open positions within a portfolio has increased by ¤100 since the positions were entered.
 +
* Will return a value of -50 if the combined value of all open positions within a portfolio has decreased by ¤50 since the positions were entered.
  
Portfolio_OpenPositionProfit  will return a value of 100 if the combined value of all open positions
 
within a portfolio has increased by $100 since the positions were entered
 
  
Portfolio_OpenPositionProfit  will return a value of -50 if the combined value of all open positions
 
within a portfolio has decreased by $50 since the positions were entered</syntaxhighlight>
 
 
  
  
 
[[Category:Portfolio Strategy Position]]
 
[[Category:Portfolio Strategy Position]]

Latest revision as of 12:26, 25 July 2014

Returns a numerical value, indicating the current combined profit or loss for all open positions within a portfolio.

Usage

Portfolio_OpenPositionProfit

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 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

Portfolio_OpenPositionProfit
  • Will return a value of 0 if there are currently no open positions within a portfolio.
  • Will return a value of 100 if the combined value of all open positions within a portfolio has increased by ¤100 since the positions were entered.
  • Will return a value of -50 if the combined value of all open positions within a portfolio has decreased by ¤50 since the positions were entered.