Difference between revisions of "TotalBarsEvenTrades"

From MultiCharts
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 even trades. ==== Usage ==== <syntaxhighlight>TotalBarsEvenTrades</s...")
 
m
 
Line 1: Line 1:
 
Returns a numerical value, indicating the total number of bars a position was held during all completed even trades.   
 
Returns a numerical value, indicating the total number of bars a position was held during all completed even trades.   
  
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>TotalBarsEvenTrades</syntaxhighlight>  
 
<syntaxhighlight>TotalBarsEvenTrades</syntaxhighlight>  
 
   
 
   
==== Notes ====  
+
== Notes ==  
This function can only be used in signals.  
+
* This function can only be used in signals.
 +
* Use [[TotalBarsWinTrades]] and [[TotalBarsLosTrades]] to get the total number of bars a position was held during respectively winning and losing trades.
 
   
 
   
==== Example ====
+
== Example ==
<syntaxhighlight>TotalBarsEvenTrades will return a value of 14 if four even trades held positions for 2, 5, 3, and  
+
<syntaxhighlight>TotalBarsEvenTrades</syntaxhighlight>
4 bars  
+
* Will return a value of 14 if four even trades held positions for 2, 5, 3, and 4 bars,
 
+
* Will return a value of 0 if no even trades were completed during the entire trading period.
TotalBarsEvenTrades will return a value of 0 if no even trades were completed during the entire
 
trading period</syntaxhighlight>
 
 
   
 
   
 
[[Category:Strategy Performance]]
 
[[Category:Strategy Performance]]

Latest revision as of 19:34, 14 February 2012

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

Usage

TotalBarsEvenTrades

Notes

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

Example

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