SymbolName gives erratic results

To add comments, please log in or register
Tusher Ahmed
169
Tusher Ahmed  

if your broker offering different types of instruments (bonds, indices, shares etc.), it seems hard to get accurate symbol name.

What am i missing?

string symbolName= SymbolName(0,false);//looking at the first instrument --into "all symbols"
//sometimes symbolName returns EurUSD
//sometimes symbolName returns DAX30
//sometimes symbolName returns #AXA


result is randomly taken from different groups of instruments.

Mohamed Nabil
21567
Mohamed Nabil  
Tusher Ahmed:

if your broker offering different types of instruments (bonds, indices, shares etc.), it seems hard to get accurate symbol name.

What am i missing?

result is randomly taken from different groups of instruments.


When you set s cond parameter for symbol name function to false so it returns the name of the symbol with index 0 in the list of instruments that broker offers . If you want to have constant result instead of false set it to true so every time the function returned the first symbol in the market watch
To add comments, please log in or register