Difference between revisions of "MaxContractProfit"
Jump to navigation
Jump to search
(Created page with "Returns a numerical value, indicating the largest gain reached per each contract or share of a current multi-share or multi-contract position. ==== Usage ==== <syntaxhighli...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Returns a numerical value, indicating the largest gain reached per each contract or share of a current multi-share or multi-contract position. | Returns a numerical value, indicating the largest gain reached per each contract or share of a current multi-share or multi-contract position. | ||
− | + | == Usage == | |
<syntaxhighlight>MaxContractProfit</syntaxhighlight> | <syntaxhighlight>MaxContractProfit</syntaxhighlight> | ||
− | + | == Notes == | |
− | This function can only be used in signals. | + | * This function can only be used in signals. |
+ | * Use [[MaxPositionProfit]] to get the largest gain reached for the whole position. | ||
+ | * Use [[MaxPositionLoss]] to get the largest loss reached for the whole position. | ||
− | + | == Example == | |
Assign a value, indicating the largest gain reached per contract or share, to Value1 variable: | Assign a value, indicating the largest gain reached per contract or share, to Value1 variable: | ||
− | <syntaxhighlight>Value1=MaxContractProfit;</syntaxhighlight> | + | <syntaxhighlight>Value1 = MaxContractProfit;</syntaxhighlight> |
[[Category:Strategy Position]] | [[Category:Strategy Position]] |
Latest revision as of 09:52, 9 February 2012
Returns a numerical value, indicating the largest gain reached per each contract or share of a current multi-share or multi-contract position.
Usage
MaxContractProfit
Notes
- This function can only be used in signals.
- Use MaxPositionProfit to get the largest gain reached for the whole position.
- Use MaxPositionLoss to get the largest loss reached for the whole position.
Example
Assign a value, indicating the largest gain reached per contract or share, to Value1 variable:
Value1 = MaxContractProfit;