Difference between revisions of "GetPositionQuantity"

From MultiCharts
Jump to navigation Jump to search
(Created page with " Category:Accounts & Positions")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
Returns the size of the position, defined by specified account/symbol pair.
 +
 +
== Usage ==
 +
<syntaxhighlight>GetPositionQuantity(Symbol, Account)</syntaxhighlight>
 +
 +
Where:
 +
 +
:'''Symbol''' - the name of the instrument.
 +
 +
:'''Account''' - account number at broker.
 +
 +
== Example ==
 +
<syntaxhighlight>GetPositionQuantity("ESZ1", "DU12345")</syntaxhighlight> will return a value of 1000 if the size of the position, defined by specified account/symbol pair position is $1000.
  
 
[[Category:Accounts & Positions]]
 
[[Category:Accounts & Positions]]

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.