AvgBarsWinTrade: Difference between revisions
From MultiCharts
(Created page with "Returns a numerical value, indicating the average number of bars a position was held during all completed winning trades. ==== Usage ==== <syntaxhighlight>AvgBarsWinTrade</...") |
No edit summary |
||
Line 1: | Line 1: | ||
Returns a numerical value, indicating the average number of bars a position was held during all completed winning trades. | Returns a numerical value, indicating the average number of bars a position was held during all completed winning trades. | ||
== Usage == | |||
<syntaxhighlight>AvgBarsWinTrade</syntaxhighlight> | <syntaxhighlight>AvgBarsWinTrade</syntaxhighlight> | ||
== Notes == | |||
This function can only be used in signals. | * This function can only be used in signals. | ||
* Use [[AvgBarsLosTrade]] and [[AvgBarsEvenTrade]] to get the average number of bars a position was held during respectively losing trades and even trades. | |||
== Example == | |||
<syntaxhighlight>AvgBarsWinTrade | <syntaxhighlight>AvgBarsWinTrade</syntaxhighlight> | ||
and 4 bars | Will return a value of 3.5 if four winning trades held positions for 2, 5, 3, and 4 bars. | ||
[[Category:Strategy Performance]] | [[Category:Strategy Performance]] |
Latest revision as of 18:53, 14 February 2012
Returns a numerical value, indicating the average number of bars a position was held during all completed winning trades.
Usage
AvgBarsWinTrade
Notes
- This function can only be used in signals.
- Use AvgBarsLosTrade and AvgBarsEvenTrade to get the average number of bars a position was held during respectively losing trades and even trades.
Example
AvgBarsWinTrade
Will return a value of 3.5 if four winning trades held positions for 2, 5, 3, and 4 bars.