+1 888 340 6572

TotalBarsLosTrades: Difference between revisions

From MultiCharts
(Created page with "Returns a numerical value, indicating the total number of bars a position was held during all completed losing trades. ==== Usage ==== <syntaxhighlight>TotalBarsLosTrades</...")
 
mNo edit summary
 
Line 1: Line 1:
Returns a numerical value, indicating the total number of bars a position was held during all completed losing trades.   
Returns a numerical value, indicating the total number of bars a position was held during all completed losing trades.   


==== Usage ====
== Usage ==
<syntaxhighlight>TotalBarsLosTrades</syntaxhighlight>  
<syntaxhighlight>TotalBarsLosTrades</syntaxhighlight>  
   
   
==== Notes ====  
== Notes ==  
This function can only be used in signals.  
* This function can only be used in signals.
* Use [[TotalBarsEvenTrades]] and [[TotalBarsWinTrades]] to get the total number of bars a position was held during respectively even and winning trades.
   
   
==== Example ====
== Example ==
<syntaxhighlight>TotalBarsLosTrades will return a value of 14 if four losing trades held positions for 2, 5, 3, and  
<syntaxhighlight>TotalBarsLosTrades</syntaxhighlight>
4 bars  
* Will return a value of 14 if four losing trades held positions for 2, 5, 3, and 4 bars.
 
* Will return a value of 0 if no losing trades were completed during the entire trading period.
TotalBarsLosTrades will return a value of 0 if no losing trades were completed during the entire
trading period</syntaxhighlight>
   
   
[[Category:Strategy Performance]]
[[Category:Strategy Performance]]

Latest revision as of 19:33, 14 February 2012

Returns a numerical value, indicating the total number of bars a position was held during all completed losing trades.

Usage

TotalBarsLosTrades

Notes

  • This function can only be used in signals.
  • Use TotalBarsEvenTrades and TotalBarsWinTrades to get the total number of bars a position was held during respectively even and winning trades.

Example

TotalBarsLosTrades
  • Will return a value of 14 if four losing trades held positions for 2, 5, 3, and 4 bars.
  • Will return a value of 0 if no losing trades were completed during the entire trading period.