Knowledgebase:
SymbolSelect
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 13 June 2016 12:23 PM

Syntax

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

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

Parameters

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.

Sample

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))
Helpful
Not helpful

Comments (2)
mahmoud
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 :
http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/1730
http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/1729
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