+1 888 340 6572

GetPositionQuantity: Difference between revisions

From MultiCharts
No edit summary
No edit summary
 
Line 6: Line 6:
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:19, 3 March 2017

Returns the size of the position, defined by specified account/symbol pair.

Usage

GetPositionQuantity(Symbol, Account)

Where:

Symbol - the name of the instrument.
Account - account number at broker.

Example

GetPositionQuantity("ESZ1", "DU12345")

will return a value of 1000 if the size of the position, defined by specified account/symbol pair position is $1000.