Difference between revisions of "AvgBarsLosTrade"
Jump to navigation
Jump to search
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138) |
|||
Line 1: | Line 1: | ||
Returns a numerical value, indicating the average number of bars a position was held during all completed losing trades. | Returns a numerical value, indicating the average number of bars a position was held during all completed losing trades. | ||
− | + | == Usage == | |
<syntaxhighlight>AvgBarsLosTrade</syntaxhighlight> | <syntaxhighlight>AvgBarsLosTrade</syntaxhighlight> | ||
− | + | == Notes == | |
− | This function can only be used in signals. | + | * This function can only be used in signals. |
+ | * Use [[AvgBarsWinTrade]] and [[AvgBarsEvenTrade]] to get the average number of bars a position was held during respectively winning trades and even trades. | ||
− | + | == Example == | |
− | <syntaxhighlight>AvgBarsLosTrade | + | <syntaxhighlight>AvgBarsLosTrade</syntaxhighlight> |
− | and 4 bars | + | Will return a value of 3.5 if four losing trades held positions for 2, 5, 3, and 4 bars. |
[[Category:Strategy Performance]] | [[Category:Strategy Performance]] |
Latest revision as of 18:54, 14 February 2012
Returns a numerical value, indicating the average number of bars a position was held during all completed losing trades.
Usage
AvgBarsLosTrade
Notes
- This function can only be used in signals.
- Use AvgBarsWinTrade and AvgBarsEvenTrade to get the average number of bars a position was held during respectively winning trades and even trades.
Example
AvgBarsLosTrade
Will return a value of 3.5 if four losing trades held positions for 2, 5, 3, and 4 bars.