getting a "Specified symbol is not selected" popup

 

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
 
If you provide your code you will get help faster. See also Organizing Data Access
 
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");
  
  } 

 

 
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:

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. 

 
Have you tried to open Demo account yet?
 
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? 

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

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? 

Reason: