Difference between revisions of "GrossProfit"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, indicating the total currency value of all completed winning trades. ==== Usage ==== <syntaxhighlight>GrossProfit</syntaxhighlight> ==== Note =...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
Returns a numerical value, indicating the total currency value of all completed winning trades.   
 
Returns a numerical value, indicating the total currency value of all completed winning trades.   
  
==== Usage ====
+
== Usage ==
 
<syntaxhighlight>GrossProfit</syntaxhighlight>  
 
<syntaxhighlight>GrossProfit</syntaxhighlight>  
  
==== Note ====
+
== Notes ==  
 +
* This function can only be used in signals.
 +
* Use [[GrossLoss]] to get the total currency value of all completed losing trades, and [[NetProfit]] and [[PercentProfit]] to get the total profit for the strategy.
  
This function can only be used in signals.
+
== Example ==
+
<syntaxhighlight>GrossProfit</syntaxhighlight>
==== Example ====
+
* Will return a value of 50 if there were a total of four winning trades, at 10, 5, 20, and 15,
<syntaxhighlight>GrossProfit will return a value of 50 if there were a total of four winning trades, at 10, 5, 20,  
+
* Will return a value of 0 if no winning trades were completed during the entire trading period.
and 15  
 
 
 
GrossProfit will return a value of 0 if no winning trades were completed during the entire trading
 
period</syntaxhighlight>
 
 
   
 
   
 
[[Category:Strategy Performance]]
 
[[Category:Strategy Performance]]

Latest revision as of 20:04, 14 February 2012

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

Usage

GrossProfit

Notes

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

Example

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