• Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX

TimeSeries

home/Knowledge Base/Technical Support/API/Client API's/VTL/VTL Client Scripts/TimeSeries/OpenPrices

OpenPrices

32 views 0 Updated on December 26, 2023 hybrid-solutions


Syntax

Public Function OpenPrices(SymbolName As String, TimeFrame As ENUM_TIMEFRAMES, StartPos As Long, Count As Long, ByRef OpenArray As Variant) As Integer 

Description

This function is used to get into the OpenArray the history data of the bar openprices for the selected symbol period.

Parameters

Key Description
SymbolName The name of the symbol to get the openbar prices for, the value of type string
TimeFrame Symbol period, the value of type ENUM_TIMEFRAMES
StartPos The start position for the first bar, the value of type long
Count The data count to get the openbar prices for, the value of type Long
OpenArray Openprices bar result, the value of type Variant


Return value

Returns the bars count that gets the openprices of, and return 0 if the start position less than 0. If an error occurred, call GetLastError to read the error.


Sample

 Public Sub main()    Dim Count    Dim arr ()    Count = OpenPrices ("EUR/USD", PERIOD_M5, 1, Bars (0), arr)    AlertMessage ("the open price for the bar number 30 is " & Arr (30)) End Sub

See Also

  • DataTimes
  • TimeLocal
  • ClientTime

Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  DataTimes

ClosePrices  

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
  • Release Notes
  • Technical Support
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • 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 2024 hybridsolutions.com. All Rights Reserved.