GrossProfit: Difference between revisions
From MultiCharts
m
no edit summary
(Created page with "Returns a numerical value, indicating the total currency value of all completed winning trades. ==== Usage ==== <syntaxhighlight>GrossProfit</syntaxhighlight> ==== Note =...") |
mNo edit summary |
||
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 == | |||
<syntaxhighlight>GrossProfit</syntaxhighlight> | <syntaxhighlight>GrossProfit</syntaxhighlight> | ||
== | == Notes == | ||
* This function can only be used in signals. | |||
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 == | |||
<syntaxhighlight>GrossProfit | <syntaxhighlight>GrossProfit</syntaxhighlight> | ||
and 15 | * 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. | |||
period | |||
[[Category:Strategy Performance]] | [[Category:Strategy Performance]] |