Difference between revisions of "GetPositionTotalCost"

From MultiCharts
Jump to navigation Jump to search
 
Line 8: Line 8:
 
Where:  
 
Where:  
  
: <code>Symbol</code> - the name of the instrument.
+
:'''Symbol''' - the name of the instrument.
: <code>Account</code> - account number at broker.
+
:'''Account''' - account number at broker.
  
 
== Example ==
 
== Example ==

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.