Syntax
Public Overrides Function NewPosition(ByVal AccountID As String, ByVal BuySell As VertexFXBridgeAPI.OperationType, ByVal Amount As Double, ByVal SymbolName As String, ByVal AtPrice As String)As TransResult
This function opens a new position with a specific price for specific account.
Parameters
Key | Description |
AccountID | Selected account ID |
BuySell | Buy or Sell asOperationType |
Amount | Lots amount |
SymbolName | Symbol name of the new position |
AtPrice | The price for the new position |
Remarks
Opens a new position with a specific price and symbol for the selected account.
Sample
Public Sub BOAllDataAreLoaded () Dim Result As VertexFXBridgeAPI.TransResult Result=BO.GetBO.NewPosition (1111, OperationType.Buy, 10, GOLD, 1200) End Sub
See Also