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

Custom Indicators

home/Knowledge Base/Technical Support/API/Client API's/VTL/VTL Client Scripts/Custom Indicators/NewTick

NewTick

11 views 0 Updated on December 29, 2023 hybrid-solutions

Syntax

Public Sub NewTick (chart_Index as integer, IndicatorName as string , newvalue as double)

This function is used to update close price for last candle that was added before by AddCustomIndicatorCandles method in the specified chart.

Parameters

Parameters Description
chart_index Chart position on the chart windows, 0 means the current chart, value of type integer
IndicatorName Name of added indicator, value of type String.
Newvalue The new value for the indicator to be set, value of type Double.

Return value

No return value.

Sample

Dim indKeyDim vchartIdDim vchartNameDim resultValuePublic Sub Main()    Dim OpenArry()    Dim highArry()    Dim LowArry()    Dim CloseArry()     vchartId=chartId     vchartName=ChartSymbol(Clng(vchartId))      CopyOpen 0,1, bars(0),OpenArry      CopyHigh 0,1, bars(0),highArry      CopyLow 0,1, bars(0),LowArry      CopyClose 0,1, bars(0),CloseArry     indKey=AddCustomIndicatorCandles(0, openArry , highArry,lowArray ,  closeArry ,1,False,0,"Indicator",VbRed,VbBlue)End SubPublic Sub OnTick(SymbolName)   if symbolName = ChartSymbol(0) then        NewTick 0,CSTR(indKey),CDBL(GetHigh(0,bars(0)))   end ifEnd Sub

See Also

  • NewCandle
  • AddCustomIndicator
  • SetIndicatorData

Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  AddCustomIndicatorCandles

NewCandle  

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.