Difference between revisions of "AvgBarsEvenTrade"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, indicating the average number of bars a position was held during all completed even trades. ==== Usage ==== <syntaxhighlight>AvgBarsEvenTrade</sy...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
Returns a numerical value, indicating the average number of bars a position was held during all completed even trades.   
 
Returns a numerical value, indicating the average number of bars a position was held during all completed even trades.   
  
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>AvgBarsEvenTrade</syntaxhighlight>  
 
<syntaxhighlight>AvgBarsEvenTrade</syntaxhighlight>  
 
   
 
   
==== Notes ====  
+
== Notes ==  
This function can only be used in signals.  
+
* This function can only be used in signals.
 +
* Use [[AvgBarsLosTrade]] and [[AvgBarsWinTrade]] to get the average number of bars a position was held during respectively losing trades and winning trades.
 
   
 
   
==== Example ====
+
== Example ==
<syntaxhighlight>AvgBarsEvenTrade will return a value of 3.5 if four even trades held positions for 2, 5, 3, and 4 bars</syntaxhighlight>
+
<syntaxhighlight>AvgBarsEvenTrade</syntaxhighlight>
 
+
Will return a value of 3.5 if four even 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 even trades.

Usage

AvgBarsEvenTrade

Notes

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

Example

AvgBarsEvenTrade

Will return a value of 3.5 if four even trades held positions for 2, 5, 3, and 4 bars.