Or function

 

please advise where I am making a mistake

int OnInit()
  {
//--- indicator buffers mapping
   string   Pair                 = "EURUSD" || "GBPUSD";
if(Symbol()!=Pair)
    {
      Alert("Wrong Pair. Please use EURUSD, GBPUSD Only");
      return(INIT_FAILED);
    }
    
    
    
   
//---
   return(INIT_SUCCEEDED);
  }

Averaging Price Series for Intermediate Calculations Without Using Additional Buffers
Averaging Price Series for Intermediate Calculations Without Using Additional Buffers
  • www.mql5.com
This article is about traditional and unusual algorithms of averaging packed in simplest and single-type classes. They are intended for universal usage in almost all developments of indicators. I hope that the suggested classes will be a good alternative to 'bulky' calls of custom and technical indicators.
 
thank you but i don't see a solution i can use, i'm not an experienced programmer
 
A string or a string is meaningless. A bool or a bool is not.
if(Symbol()!= "EURUSD" && Symbol()!= "GBPUSD")
 
William Roeder #:
A string or a string is meaningless. A bool or a bool is not.

perfect, thank you very much, have a nice day

Reason: