EasyLanguage Object Reference
Accesses the market position properties for a specified symbol and account when using an PositionsProvider component.
Namespace: tsdata.trading
Name | Type | Description | |
![]() |
AccountID | string | Gets the ID of the account. |
![]() |
AveragePrice | double | Gets the average price of all positions for the current symbol. |
![]() |
BigPointValue | double | Get the dollar value for a one point movement. |
![]() |
ContractExpirationDate | datetime | Get the expiration date for the contract. |
![]() |
HasValue | boolean | True if the value of the specified field exists. |
![]() |
InitialMargin | double | Gets the account balance required for entering a position on margin. |
![]() |
MaintenanceMargin | double | Gets the account balance required for maintaining a position on margin. |
![]() |
MarketValue | double | Gets the actual market value of the open position. |
![]() |
OpenPL | double | Gets the unrealized profit or loss on the position held. |
![]() |
OriginalCost | double | Gets the original cost of the trade (Forex only). |
![]() |
PLPerQuantity | double | Gets the unrealized profit or loss divided by the number of shares or contracts held. |
![]() |
PercentPL | double | Gets the unrealized profit or loss as a percentage of the initial value. |
![]() |
Quantity | int | The number of shares in the current position. |
![]() |
RequiredMargin | double | The margin requirement of the position. |
![]() |
Symbol | string | Get the symbol of the current position. |
![]() |
SymbolType | enum | The type of security. See SecurityType for a list of possible values. |
![]() |
TotalCost | double | Gets the total cost of the open position. |
![]() |
Type | enum | The PositionType of the position. |
![]() |
Value | double | The value of the specified [PositionFields.Name] |
Name | Description | |
![]() |
Close |
Closes the current position. |
![]() |
Reverse(templatePath) |
Reverses the position using the parameters in file referred to in the templatePath. |
![]() |
Reverse() |
Reverses the position. |
Name | Description | |
![]() |
Updated | Occurs whenever the Positions object is updated. See PositionUpdatedEventArgs for the properties returned by the handler's args parameters. |
tsdata.trading.Position