Difference between revisions of "ContractProfit"
Jump to navigation
Jump to search
(Created page with "Returns a numerical value, indicating the current profit or loss per each contract or share of a multi-share or multi-contract position. ==== Usage ==== <syntaxhighlight>Co...") |
m |
||
Line 1: | Line 1: | ||
Returns a numerical value, indicating the current profit or loss per each contract or share of a multi-share or multi-contract position. | Returns a numerical value, indicating the current profit or loss per each contract or share of a multi-share or multi-contract position. | ||
− | + | == Usage == | |
<syntaxhighlight>ContractProfit</syntaxhighlight> | <syntaxhighlight>ContractProfit</syntaxhighlight> | ||
− | + | == Notes == | |
− | This function can only be used in signals. | + | * This function can only be used in signals. |
− | + | == Example == | |
Assign a value, indicating the current profit or loss per contract or share, to Value1 variable: | Assign a value, indicating the current profit or loss per contract or share, to Value1 variable: | ||
− | <syntaxhighlight>Value1=ContractProfit;</syntaxhighlight> | + | <syntaxhighlight>Value1 = ContractProfit;</syntaxhighlight> |
[[Category:Strategy Position]] | [[Category:Strategy Position]] |
Latest revision as of 09:40, 9 February 2012
Returns a numerical value, indicating the current profit or loss per each contract or share of a multi-share or multi-contract position.
Usage
ContractProfit
Notes
- This function can only be used in signals.
Example
Assign a value, indicating the current profit or loss per contract or share, to Value1 variable:
Value1 = ContractProfit;