Difference between revisions of "TotalBarsWinTrades"
Jump to navigation
Jump to search
(Created page with "Returns a numerical value, indicating the total number of bars a position was held during all completed winning trades. ==== Usage ==== <syntaxhighlight>TotalBarsWinTrades<...") |
m |
||
Line 1: | Line 1: | ||
Returns a numerical value, indicating the total number of bars a position was held during all completed winning trades. | Returns a numerical value, indicating the total number of bars a position was held during all completed winning trades. | ||
− | + | == Usage == | |
<syntaxhighlight>TotalBarsWinTrades</syntaxhighlight> | <syntaxhighlight>TotalBarsWinTrades</syntaxhighlight> | ||
− | + | == Notes == | |
− | This function can only be used in signals. | + | * This function can only be used in signals. |
− | + | * Use [[TotalBarsEvenTrades]] and [[TotalBarsLosTrades]] to get the total number of bars a position was held during respectively even and losing trades. | |
− | |||
− | |||
− | and | ||
− | |||
− | |||
− | |||
+ | == Example == | ||
+ | <syntaxhighlight>TotalBarsWinTrades</syntaxhighlight> | ||
+ | * Will return a value of 14 if four winning trades held positions for 2, 5, 3, and 4 bars, | ||
+ | * Will return a value of 0 if no winning trades were completed during the entire trading period. | ||
[[Category:Strategy Performance]] | [[Category:Strategy Performance]] |
Latest revision as of 19:32, 14 February 2012
Returns a numerical value, indicating the total number of bars a position was held during all completed winning trades.
Usage
TotalBarsWinTrades
Notes
- This function can only be used in signals.
- Use TotalBarsEvenTrades and TotalBarsLosTrades to get the total number of bars a position was held during respectively even and losing trades.
Example
TotalBarsWinTrades
- Will return a value of 14 if four winning trades held positions for 2, 5, 3, and 4 bars,
- Will return a value of 0 if no winning trades were completed during the entire trading period.