Difference between revisions of "Portfolio NetProfit"
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...") |
|||
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 == | |
<syntaxhighlight>Portfolio_NetProfit</syntaxhighlight> | <syntaxhighlight>Portfolio_NetProfit</syntaxhighlight> | ||
− | + | == 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 [[:Category:Portfolio_Backtesting|Portfolio Backtester]]. |
− | == | + | == Examples == |
− | <syntaxhighlight>Portfolio_NetProfit | + | <syntaxhighlight>Portfolio_NetProfit</syntaxhighlight> |
− | trades | + | * 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. | |
− | trades | ||
− | |||
− | |||
− | period | ||
− | |||
[[Category:Portfolio Strategy Performance]] | [[Category:Portfolio Strategy Performance]] |
Revision as of 07:12, 9 February 2012
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 Backtester.
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.