×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

GetPositionTotalCost - MultiCharts
Open main menu

GetPositionTotalCost

Revision as of 18:20, 3 March 2017 by Angelina (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.