Portfolio PercentProfit: Difference between revisions
From MultiCharts
m
→Notes
(Created page with "Returns a numerical value, indicating the percentage of winning trades in all trades completed for a portfolio. ==== Usage ==== <syntaxhighlight>Portfolio_PercentProfit</sy...") |
m (→Notes) |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
Returns a numerical value, indicating the percentage of winning trades in all trades completed for a portfolio. | Returns a numerical value, indicating the percentage of winning trades in all trades completed for a portfolio. | ||
== Usage == | |||
<syntaxhighlight>Portfolio_PercentProfit</syntaxhighlight> | <syntaxhighlight>Portfolio_PercentProfit</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]]. | ||
* 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. | |||
<syntaxhighlight>Portfolio_PercentProfit | == Example == | ||
<syntaxhighlight>Portfolio_PercentProfit</syntaxhighlight> | |||
Will return a value of 70 if seven out of the total of 10 completed trades were winning trades. | |||
[[Category:Portfolio Strategy Performance]] | [[Category:Portfolio Strategy Performance]] |