Knowledgebase:
Time on Chart
Posted by Yousef Ibrahim, Last modified by Yousef Ibrahim on 04 July 2012 10:01 AM

'###########################################################
' Script Name: Targetted PL
' Author: Ehab Kanani
' Descreption: This Client Script will create a time label on your chart
' Website: http://www.hybrid-solutions.com
' Date: March, 22nd, 2012
'###########################################################

Dim objID

''' <summary>
''' The main function is the entry point for any Script program
''' </summary>

Public Sub main()

objID="label1"
CreateObjectLabel 0,0,CSTR(objID),20,20,TimeLocal()

ObjectSet 0,CSTR(objID),1,False

IntervalTimer 1000

EnableTimer True

End Sub

''' <summary>
''' The function is generated when a new tick is received fro any symbol
''' </summary>
Public Sub OnTimer() 
ObjectSet 0,CSTR(objID),2,TimeLocal()
End Sub


''' <summary>
''' The function is generated when a new tick is received fro any symbol
''' </summary>

Public Sub OnTick(SymbolName)

End Sub

Public Sub OnInit()
'''TODO: initialization method

End Sub


''' <summary>
''' The function is generated when deinitialization script
''' </summary>

Public Sub OnDeInit()
'''TODO: deinitialization method

End Sub



See Also


Back to VTL Client Script Index

(1 vote(s))
Helpful
Not helpful

Comments (0)
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