×

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.

Changes - MultiCharts
Open main menu

Changes

GetPositionTotalCost

460 bytes added, 18:20, 3 March 2017
no edit summary
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]]