View Full Version : help needed in VTL script

03-05-2014, 06:43 PM
i have an mql script which i want to convert to VTL.
mql script uses '_digits' predefined variable which gives the number of digits after a decimal point, which defines the price accuracy of the symbol of the current chart

i want to know about an equivalent function/pre-defined variable of '_digits' in VTL

03-06-2014, 06:44 AM
Hello tarun,

Use the SymbolInfoInteger (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/1733)method to get all integer info for specific symbol....

Dim exeResult

Dim rst

Dim symbolName

Public Sub main()


ShowResult SymbolInfoInteger( cstr(symbolName),SYMBOL_PIP_LOCATION,rst) , "SYMBOL PIP LOCATION",cstr(symbolName)

MsgBox cstr(exeResult)

End Sub

Public Sub ShowResult(isTrue,enumDescription,symName)

if isTrue then

exeResult=exeResult & CSTR(enumDescription) & " for " & CSTR(symName) & " is : " & Abs(rst)


exeResult=exeResult & "Error during Get " & CSTR(enumDescription) & " due to error code " & ErrorDescription(GetLastError())

end if

exeResult=exeResult & vbNewLine


end sub