Difference between revisions of "GrossLoss"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a negative numerical value, indicating the total currency value of all completed losing trades. ==== Usage ==== <syntaxhighlight>GrossLoss</syntaxhighlight> ====...")
 
m
 
Line 1: Line 1:
 
Returns a negative numerical value, indicating the total currency value of all completed losing trades.   
 
Returns a negative numerical value, indicating the total currency value of all completed losing trades.   
  
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>GrossLoss</syntaxhighlight>  
 
<syntaxhighlight>GrossLoss</syntaxhighlight>  
 
   
 
   
==== Notes ====  
+
== Notes ==  
This function can only be used in signals.  
+
* This function can only be used in signals.
 +
* Use [[GrossProfit]] to get the total currency value of all completed winning trades, and [[NetProfit]] and [[PercentProfit]] to get the total profit for the strategy.
 
   
 
   
==== Example ====
+
== Example ==
<syntaxhighlight>GrossLoss will return a value of -50 if there were a total of four losing trades, at 10, 5, 20,  
+
<syntaxhighlight>GrossLoss</syntaxhighlight>
and 15  
+
* Will return a value of -50 if there were a total of four losing trades, at 10, 5, 20, and 15,
 
+
* Will return a value of 0 if no losing trades were completed during the entire trading period.
GrossLoss 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 20:03, 14 February 2012

Returns a negative numerical value, indicating the total currency value of all completed losing trades.

Usage

GrossLoss

Notes

  • This function can only be used in signals.
  • Use GrossProfit to get the total currency value of all completed winning trades, and NetProfit and PercentProfit to get the total profit for the strategy.

Example

GrossLoss
  • Will return a value of -50 if there were a total of four losing trades, at 10, 5, 20, and 15,
  • Will return a value of 0 if no losing trades were completed during the entire trading period.