GetNumPositions (Reserved Word)

image\trumpet2.gif Disclaimer

Get the number of open positions for the given equity or futures account.  This number is used to enumerate the positions available accounts using the GetPositionSymbol function.

Usage

GetNumPositions(strAccountNumber)

Return

Returns the number of open positions for the given account.  Returns zero for an invalid account or if flat.

Inputs

strAccountNumber is the string representation of the account to check.  GetAccountID returns the account parameter needed here, or you can specify it manually.

Example

Value1 = GetNumPositions(GetAccountID);
 

  This reserved word uses processor intensive TradeManager calls that may adversely impact the performance of TradeStation and other applications on your computer.