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


Public Function SymbolSelect(SymbolName As String, Selected As Boolean) As Boolean


This function used to show/hide the given symbol in market watch.


Key Description 
SymbolName Symbol name that want to show/hide, value of type of string. 
Selected If True the symbol appeared on the market watch ,false to hide the symbol,value of type Boolean.

Return value

Returns true if successful. In order to get an error, call GetLastError() function.


Public Sub main()

AlertMessage SymbolSelect("EUR/USD",True) 'Returns true if the symbol is selected. 

End Sub

See Also

Back to VTL Client Script Index

(0 vote(s))
Not helpful

Comments (2)
17 December 2015 02:23 PM
How do i select a symbol to trade it?
My ea open a trade with a new symbol each time
How do i tell it to select for example eurusd in order to trade it?
Hassan Abu Krayem
21 December 2015 10:19 AM
Hello Mahmoud,

No need to select any symbol to make a trade on it since you send the symbol name you want to NewMarketOrder method.

If you need to get the symbols names using the VTL you should loop from 1 to SymbolsTotal and on each loop call SymbolName method.

check the following articles :
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