Difference between revisions of "GetPositionTotalCost"
Jump to navigation
Jump to search
(Created page with " Category:Accounts & Positions") |
|||
Line 1: | Line 1: | ||
+ | Calculated with the following formula: | ||
+ | |||
+ | PTC (Position Total Cost) = AEP (Average Entry Price) x TMP (Total Market Position). | ||
+ | |||
+ | == Usage == | ||
+ | <syntaxhighlight>GetPositionTotalCost(Symbol, Account)</syntaxhighlight> | ||
+ | |||
+ | Where: | ||
+ | |||
+ | : <code>Symbol</code> - the name of the instrument. | ||
+ | |||
+ | : <code>Account</code> - account number at broker. | ||
+ | |||
+ | == Example == | ||
+ | <syntaxhighlight>GetPositionTotalCost("ESZ1", "DU12345")</syntaxhighlight> will return total position cost for ESZ1 on account DU1234. | ||
[[Category:Accounts & Positions]] | [[Category:Accounts & Positions]] |
Revision as of 14:41, 24 February 2012
Calculated with the following formula:
PTC (Position Total Cost) = AEP (Average Entry Price) x TMP (Total Market Position).
Usage
GetPositionTotalCost(Symbol, Account)
Where:
Symbol
- the name of the instrument.
Account
- account number at broker.
Example
GetPositionTotalCost("ESZ1", "DU12345")
will return total position cost for ESZ1 on account DU1234.