Login
Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • Forum
  • Home
  • Knowledgebase
  • Blog
  • Forum

Overridden Methods

home/Knowledge Base/Technical Support/API/BackEnd API's/VBL/VertexFX Bridge Language/Data Types/VFXBO/Overridden Methods/ClosePosition

ClosePosition

0 views 0 December 16, 2021 hybrid-solutions


Syntax

Public Overrides Function ClosePosition(ByVal AccountID As Long, ByVal Ticket As Long, ByVal Amount As Double, ByVal Price As Double, ByVal RefPrice As Double, ByVal Comm As Double)As TransResult

This function is to close an open position at a specific price for theselected account.

Parameters

Key Description
AccountID Position account ID
Ticket Ticket ID for the position you want to close
Amount Lot amount
Price The price you want to close in
RefPrice Reference symbol price
Comm The Commission you want to use when closing the position

See Also

  • DealerUsername
  • DeleteLimitOrder
  • DeleteSLTPOrder

Back to VFXBO Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

About
VertexFX Trader has a closed-loop trading structure with Backoffice dealing desk, Client Terminals, Dedicated Hosting, White Labelling and Bridging Capabilities. Through VertexFX Risk Management Bridge...
Categories
  • Technical Support
  • Social Trading
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • Forum
  • Media Center
Need Support?
If you need any further help, don't hesitate to send a support request to our support team.
Contact Support
  • Privacy Policy
  • Brokers Terms
  • Traders EULA
  • ISV Terms
  • Plugins EULA
  • Copyright 2022 hybridsolutions.com. All Rights Reserved.