Difference between revisions of "Portfolio PercentProfit"
Jump to navigation
Jump to search
m (Reverted edits by 176.8.90.7 (talk) to last revision by JoshM) |
m (→Notes) |
||
Line 5: | Line 5: | ||
== Notes == | == Notes == | ||
− | This function can only be used in signals intended to be used with the [[:Category:Portfolio_Backtesting|Portfolio Backtester]]. | + | * This function can only be used in signals intended to be used with the [[:Category:Portfolio_Backtesting|Portfolio Backtester]]. |
− | + | * See [[Portfolio NumWinTrades]] to get the number of completed winning trades in the whole portfolio, [[Portfolio NumLossTrades]] for the total number of losing trades, and [[Portfolio TotalTrades]] for all completed trades for the portfolio during the trading period. | |
+ | |||
== Example == | == Example == | ||
<syntaxhighlight>Portfolio_PercentProfit</syntaxhighlight> | <syntaxhighlight>Portfolio_PercentProfit</syntaxhighlight> |
Latest revision as of 14:15, 19 February 2012
Returns a numerical value, indicating the percentage of winning trades in all trades completed for a portfolio.
Usage
Portfolio_PercentProfit
Notes
- This function can only be used in signals intended to be used with the Portfolio Backtester.
- See Portfolio NumWinTrades to get the number of completed winning trades in the whole portfolio, Portfolio NumLossTrades for the total number of losing trades, and Portfolio TotalTrades for all completed trades for the portfolio during the trading period.
Example
Portfolio_PercentProfit
Will return a value of 70 if seven out of the total of 10 completed trades were winning trades.