• 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/iBarShift

iBarShift

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

Syntax

 Public Function iBarShift (chartIndex As Integer, Time As String) As Integer

Description

This function is used to return the index of the bar by giving the bar time on the specificchart.

Parameters

Key Description
ChartIndex The chart position on the chart windows.0 means a current chart, the value of type Integer
Time The cover bar time (dd/MM/yyyy hh:mm:ss), the value of type String.

Return value

ReturnsIndex of the bar which covers the specified time. If there is no bar for the specified time the function will return -1.

Sample

 Public Sub main()    Dim Result    Result= iBarShift (0,15:08:2015 00:00:00)     AlertMessage Result End Sub

See Also

  • iHighest
  • iLowest
  • Bars

Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  TimeLocal

iHighest  

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.