Compiling EA code

 

Hi guys wonder if you can help, tried to code an EA on MA crossover. I was copying from the HLHB version, at the end when I compile I get a warning on the last line where I used '}' to close, but the warning says expressions are not allowed on a global scope, yet the version I am copying they used same to end the code ? please find copy attached.

yours truly,

Thamie

Files:
 
double CurrentRSI = iRSI (NULL, 0, RSI, PRICE_MEDIAN, 1);
 
  }

Remove the highlighted }

Topics concerning MT4 and MQL4 have their own section.

In future please post in the correct section.

I have moved your topic to the MQL4 and Metatrader 4 section.

 
Keith Watford:

Remove the highlighted }

Topics concerning MT4 and MQL4 have their own section.

In future please post in the correct section.

I have moved your topic to the MQL4 and Metatrader 4 section.

THANK YOU