GetPositionAveragePrice (Reserved Word)
Identifies the average price of the equity or forex position for the given symbol in the given account.
Usage
GetPositionAveragePrice(strSymbol, strAccountNumber)
Return
Returns a double identifying the average price. If no position exists or if the symbol or account is invalid the return value will be zero.
Inputs
strSymbol is a string that identifies the symbol. GetSymbolName returns the Symbol of the chart as the parameter needed here.
strAccountNumber is a string representation of the account to check for the position in. GetAccountID returns the Account parameter needed here, or you can specify it manually.
Example
Value1 = GetPositionAveragePrice(GetSymbolName, GetAccountID);
This reserved word uses processor intensive TradeManager calls that may adversely impact the performance of TradeStation and other applications on your computer.