Download MetaTrader 5

Can anyone open my eyes?

To add comments, please log in or register
SteelAce
203
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?

Stuart Browne
6514
Stuart Browne  
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
33358
Alain Verleyen  
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