Hi,
I want to add a symbol to MarketWatch to do some stuff later on. when I run my code, I get "Specified symbol is not selected".
But when I first add a symbol in MarketWatch manually (any symbol) and then run the code, whatever symbol selected in the code will be added to the market watch.
here is the code:
<REMOVED>
done
Hi,
I want to add a symbol to MarketWatch to do some stuff later on. when I run my code, I get "Specified symbol is not selected".
But when I first add a symbol in MarketWatch manually (any symbol) and then run the code, whatever symbol selected in the code will be added to the market watch.
why do this happen?
Thanks
Hi, your test procedures and explanations are not very clear to me, for instance:
1) Do you really change this line right before a test?
Change: AddSymbolToMarketWatch("MySymbolName"); To (for example): AddSymbolToMarketWatch("EURUSD");
2) If you just want to activate a symbol and you can address it using SymbolSelec() as below, why you need a loop to check all the symbols?
if(SymbolSelect(name,true)) { ... }
Note that it's important to check the SymbolSelect() return value (you don't do this in your code).
Anyway, if this is not enough to solve the problem, my suggestion is quite simple: put Print() after the main variables changes to check this code running step by step and please publish the report here.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I want to add a symbol to MarketWatch to do some stuff later on. when I run my code, I get "Specified symbol is not selected".
But when I first add a symbol in MarketWatch manually (any symbol) and then run the code, whatever symbol selected in the code will be added to the market watch.
why do this happen?
Thanks