EasyLanguage Object Reference

Position Class

Accesses the market position properties for a specified symbol and account when using an PositionsProvider component.  

Namespace: tsdata.trading

[ Expand All ]
Properties
  Name Type Description
Public property AccountID string Gets the ID of the account.
Public property AveragePrice double Gets the average price of all positions for the current symbol.
Public property BigPointValue double Get the dollar value for a one point movement.
Public property ContractExpirationDate datetime Get the expiration date for the contract.
Public property HasValue boolean True if the value of the specified field exists.
Public property InitialMargin double Gets the account balance required for entering a position on margin.
Public property MaintenanceMargin double Gets the account balance required for maintaining a position on margin.
Public property MarketValue double Gets the actual market value of the open position.
Public property OpenPL double Gets the unrealized profit or loss on the position held.
Public property OriginalCost double Gets the original cost of the trade (Forex only).
Public property PLPerQuantity double Gets the unrealized profit or loss divided by the number of shares or contracts held.
Public property PercentPL double Gets the unrealized profit or loss as a percentage of the initial value.
Public property Quantity int The number of shares in the current position.
Public property RequiredMargin double The margin requirement of the position.
Public property Symbol string Get the symbol of the current position.
Public property SymbolType enum The type of security. See SecurityType for a list of possible values.
Public property TotalCost double Gets the total cost of the open position.
Public property Type enum The PositionType of the position.
Public property Value double The value of the specified [PositionFields.Name]
  Name Description
Public property Close

Closes the current position.

Public property Reverse(templatePath)

Reverses the position using the parameters in file referred to in the templatePath.

Public property Reverse()

Reverses the position.

Events
  Name Description
 Public event Updated Occurs whenever the Positions object is updated. See PositionUpdatedEventArgs for the properties returned by the handler's args parameters.
Inheritance Hierarchy

elsystem.Object

  tsdata.trading.Position