.mq5 syntax error

The following code in .mq5 file gives a compile error as follows:



'+' - cannot convert enum


I have highlighted the parts where the error comes.




double sqGetExpressionByIdentification(string id, int shift) {
      if(id == "sqHeikenAshi(correctSymbol(Subchart1Symbol), TFMigrate(Subchart1Timeframe),\"Close\", 5)") {
          return       sqHeikenAshi(correctSymbol(Subchart1Symbol), shift + TFMigrate(Subchart1Timeframe), "Close", shift + 5);
      }
      if(id == "iHigh(correctSymbol(Subchart1Symbol), TFMigrate(Subchart1Timeframe), 1)") {
          return       iHigh(correctSymbol(Subchart1Symbol), shift + TFMigrate(Subchart1Timeframe), shift + 1);
      }
      if(id == "sqHeikenAshi(\"NULL\",0,\"High\", 6)") {
          return       sqHeikenAshi("NULL",0, "High", shift + 6);
      }
      if(id == "sqHeikenAshi(correctSymbol(Subchart1Symbol), TFMigrate(Subchart1Timeframe),\"Low\", 1)") {
          return       sqHeikenAshi(correctSymbol(Subchart1Symbol), shift + TFMigrate(Subchart1Timeframe), "Low", shift + 1);
      }
   
   return(0);
}

Attachments
No attachments
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Refused
  • Priority Normal

History

GA
#1

GaryAitcheson

24.10.2017 09:58

Task created

MF
#2

Mark Fric

23.11.2017 12:54

Status changed from New to Waiting for information

we cannot reproduce it. Could you attach the problematic strategy? .sq4 file please
MF
#3

Mark Fric

31.01.2018 15:01

Status changed from Waiting for information to Refused

no response given

Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please