OnTick
Posted by Mohammad Rahhal, Last modified by Abdullah Almasharfah on 14 December 2018 11:04 PM

The OnTick event is generated whenever there is a new tick.

There are 2 variants form of the events:  

Public Sub OnTick(symbolName)

Or

Public Sub OnTick()

You should use one form to consume OnTick Event.


Sample


 Public Sub main()

  End Sub

 Public Sub OnTick(symName as string)

  Gui.msgdialog(symName)

  ClientCode.EndScript()

 End Sub
 

See Also


Back to VTL Server Script Index

(3 vote(s))
Helpful
Not helpful

Comments (2)
abdul azeez
29 June 2015 12:01 PM
sir,
please any one help me.
i am new in this system
my first requirement is, assume i have a symbol name 'xyz'. when ever the price movement of this symbol 'xyz' happens i need to read the new price of it. how it is possible? could you please help me?
Hassan Abu Krayem
30 June 2015 01:07 PM
Hello,

Please check this sample
Public Sub OnTick(symName as string)
Dim Bid As Double
Bid = ClientCode.SymbolInfoDouble(symName,VTLGeneral.ENUM_SYMBOL_INFO_DOUBLE.SYMBOL_BID)
End Sub

For faster response please visit our forum : http://www.hybrid-solutions.com/forum/
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions