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

TimeSeries

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

iBarShift

11 views 0 Updated on December 16, 2021 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

  RealTime

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