M
message = StringConcatenate(Symbol()," --- EMA ",FastMa," ","Cross"," --- EMA ",SlowMa," ",doWhat," TF: ",EnumToString(PERIOD_CURRENT));
Replace current line 190 with this:
MQL5:message = StringConcatenate(Symbol()," --- EMA ",FastMa," ","Cross"," --- EMA ",SlowMa," ",doWhat," TF: ",EnumToString(PERIOD_CURRENT));
I used MQL5 code highlighter. That line of code will work in MT4 too.
message = StringConcatenate(Symbol()," --- EMA ",FastMa," ","Cross"," --- EMA ",SlowMa," ",doWhat,EnumToString((ENUM_TIMEFRAMES)Period()));
Replace with this:
MQL5:message = StringConcatenate(Symbol()," --- EMA ",FastMa," ","Cross"," --- EMA ",SlowMa," ",doWhat,EnumToString((ENUM_TIMEFRAMES)Period()));
Was there some compilation error?
Please attach the latest .mq4 you are trying to run.
We use essential cookies to make this site work, and optional cookies to enhance your experience.