GetPositionTotalCost: Difference between revisions
From MultiCharts
(Created page with " Category:Accounts & Positions") |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
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: | |||
:'''Symbol''' - the name of the instrument. | |||
:'''Account''' - 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]] |
Latest revision as of 18:20, 3 March 2017
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.