Download MetaTrader 5

Can anyone open my eyes?

To add comments, please log in or register
1000 paid orders are executed in Freelance service. Sign up!
SteelAce
180
SteelAce 2014.09.29 07:31 

There is part of sample program:

 switch(res)
     {
      case -1 : Print("Unknown symbol ",InpLoadedSymbol);             break;
      case -2 : Print("Requested bars more than max bars in chart"); break;
      case -3 : Print("Program was stopped");                        break;
      case -4 : Print("Indicator shouldn't load its own data");      break;
      case -5 : Print("Load failed");                                break;
      case  0 : Print("Loaded OK");                                  break;
      case  1 : Print("Loaded previously");                          break;
      case  2 : Print("Loaded previously and built");                break;
      default : Print("Unknown result");

     }

   My problem is that when I run sample programs, then I cannot see these outprints ("Unknown symbol " e.t.c.). Probably programs are printing these strings in some certain window, but I don't know how and where to open that window. Can anyone open my eyes?

Stuart Browne
5820
Stuart Browne 2014.09.29 09:58  
SteelAce:

There is part of sample program:

 switch(res)
     {
      case -1 : Print("Unknown symbol ",InpLoadedSymbol);             break;
      case -2 : Print("Requested bars more than max bars in chart"); break;
      case -3 : Print("Program was stopped");                        break;
      case -4 : Print("Indicator shouldn't load its own data");      break;
      case -5 : Print("Load failed");                                break;
      case  0 : Print("Loaded OK");                                  break;
      case  1 : Print("Loaded previously");                          break;
      case  2 : Print("Loaded previously and built");                break;
      default : Print("Unknown result");

     }

   My problem is that when I run sample programs, then I cannot see these outprints ("Unknown symbol " e.t.c.). Probably programs are printing these strings in some certain window, but I don't know how and where to open that window. Can anyone open my eyes?

Check the Journal tab, Expert Advisor tab, or the log files
Alain Verleyen
Moderator
30775
Alain Verleyen 2014.09.29 16:07  
SteelAce:

There is part of sample program:

 switch(res)
     {
      case -1 : Print("Unknown symbol ",InpLoadedSymbol);             break;
      case -2 : Print("Requested bars more than max bars in chart"); break;
      case -3 : Print("Program was stopped");                        break;
      case -4 : Print("Indicator shouldn't load its own data");      break;
      case -5 : Print("Load failed");                                break;
      case  0 : Print("Loaded OK");                                  break;
      case  1 : Print("Loaded previously");                          break;
      case  2 : Print("Loaded previously and built");                break;
      default : Print("Unknown result");

     }

   My problem is that when I run sample programs, then I cannot see these outprints ("Unknown symbol " e.t.c.). Probably programs are printing these strings in some certain window, but I don't know how and where to open that window. Can anyone open my eyes?

Output for Print() statement are in Experts tab of Toolbox window.
To add comments, please log in or register