Download MetaTrader 5

getting a "Specified symbol is not selected" popup

To add comments, please log in or register
MQL5Engr
28
MQL5Engr 2010.01.29 08:22 

I am getting a "Specified symbol is not selected" when I try to run my EA. What am I doing wrong?

Also, I am not able to create an demo account using MQL5.

Could you please help...

 

Thanks

MQL5Engr. 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Account Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Account Properties - Documentation on MQL5
Rashid Umarov
Admin
11989
Rashid Umarov 2010.01.29 09:25  
If you provide your code you will get help faster. See also Organizing Data Access
MQL5Engr
28
MQL5Engr 2010.01.29 17:33  
MQL5Engr posted  :

I am getting a "Specified symbol is not selected" when I try to run my EA. What am I doing wrong?

Also, I am not able to create an demo account using MQL5.

Could you please help...

 

Thanks

MQL5Engr. 

My code is nothing... it's just a Hello World program... I can compile it fine... but when I run it... it gives me an error "Specified Symbol is not selected"

int OnInit()
  {
//---
  
//---
   return(0);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
  
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   Print("Hello World");
  
  } 

 

Rashid Umarov
Admin
11989
Rashid Umarov 2010.01.29 18:49  
It's very strange, how do you get it? Have you any opened account at that moment (Do you have a connection to trade server)?

MQL5Engr
28
MQL5Engr 2010.01.29 19:27  
MQL5Engr:

My code is nothing... it's just a Hello World program... I can compile it fine... but when I run it... it gives me an error "Specified Symbol is not selected"

int OnInit()
  {
//---
  
//---
   return(0);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
  
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   Print("Hello World");
  
  } 

 

Rosh,

Thanks so much for you quick replies!!

I am not able to connect to a trade server... whenever I try to open an account it just fails.

My MQL5 application just displays "Waiting for Update" for all the currency charts...

How can I connect to a Trade Server? 

 

Thanks

MQL5Engr. 

 

Rashid Umarov
Admin
11989
Rashid Umarov 2010.01.29 19:53  
Have you tried to open Demo account yet?

MQL5Engr
28
MQL5Engr 2010.01.29 20:15  
Rosh:
Have you tried to open Demo account yet?

It doesn't let me... When I try to open... it's not able to connect to the server, I think.

Which Server do I connect to? 

What am I doing wrong? 

Rashid Umarov
Admin
11989
Rashid Umarov 2010.01.29 22:39  
The client terminal is needed open 443-rd port to connect to trade server. You should check does this port open or not.

MQL5Engr
28
MQL5Engr 2010.01.29 23:24  

Rosh:
The client terminal is needed open 443-rd port to connect to trade server. You should check does this port open or not.

I have the client terminal. I am sorry I am asking you really stupid and silly questions... I have very good experience with MQL4 but not MQL5... please bear with me...

What does "open 443-rd port to connect to trade server" mean? How do I check if this port opens or not? 

To add comments, please log in or register