Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 02 September 2020 12:12 PM


Public Function GetSubWindow(chart_Id As Long, seriesName As String) As Long


This function is used to get the index of the window (panel) where the object was added. The returned index must exceed or equal 0.


Key Description 
chart_id Chart identifier, 0 is the current chart ,value of type Long
seriesName Object Name , value of type String.

Return value

If the function fails, the returned value will be -1 .To get the detailed error information, call GetLastError().


Public Sub main()

  Dim vchartName

  Dim highArry()

  Dim vchartId

  Dim indKey

  vchartId =chartId

  vchartName =ChartSymbol(Clng(vchartId))

  CopyHigh 0,1, bars(0),highArry

  indKey = AddCustomIndicator(0, highArry,0 , true  )

  AlertMessage(GetSubWindow(0,cstr(indKey))) '' to get panel number 

End Sub


See Also

Back to VTL Client Script Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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