taozemin:
Dear all,
I use the following simple script to remove the currency pair with bid price<1.0 from the market watch.I notieced that during debug, Each time SymbolSelect(SymbolName, false) is called, it fails with error #4305. What's wrong with my code? Many thanks for your help.
Dear all,
I use the following simple script to remove the currency pair with bid price<1.0 from the market watch.I notieced that during debug, Each time SymbolSelect(SymbolName, false) is called, it fails with error #4305. What's wrong with my code? Many thanks for your help.
Your code is working well. But did you read the documentation of SymbolSelect() ?
A symbol can't be removed if the symbol chart is open, or there are open positions for this symbol.
Dear angevoyageur,
thank you for your concern this problem has been successfully solved after I closed all the open positions. I did read the related document before, but i havenot paid attention to the last sentence at that time.
Thank you for your kind help again!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I use the following simple script to remove the currency pair with bid price<1.0 from the market watch.I notieced that during debug, Each time SymbolSelect(SymbolName, false) is called, it fails with error #4305. What's wrong with my code? Many thanks for your help.