GetPositionTotalCost: Difference between revisions
From MultiCharts
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Calculated with the following formula: | Calculated with the following formula: | ||
PTC (Position Total Cost) = AEP (Average Entry Price) x TMP (Total Market Position) | PTC (Position Total Cost) = AEP (Average Entry Price) x TMP (Total Market Position) | ||
== Usage == | == Usage == | ||
Line 9: | Line 9: | ||
: <code>Symbol</code> - the name of the instrument. | : <code>Symbol</code> - the name of the instrument. | ||
: <code>Account</code> - account number at broker. | : <code>Account</code> - account number at broker. | ||
Revision as of 14:42, 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.