Error for moving average EA,

 

Can someone help me to solve the error? 

Is it because there is no input for slowmovingaverage or others problem? 

I'm new so please help is anyone knows how to solve the problem?

Files:
Capture.JPG  171 kb
 
Tan Zhi: Can someone help me to solve the error? Is it because there is no input for slowmovingaverage or others problem? I'm new so please help is anyone knows how to solve the problem?

You are missing a ";" in the string declaration of the variable "signal".

string signal=""; // <- There was a missing ";" in your code
 
Fernando Carreiro:

You are missing a ";" in the string declaration of the variable "signal".

Thanks. It solve the error. 

However, the warnings can just leave it? or is there any ways to solve it too?

 
Tan Zhi: Thanks. It solve the error. However, the warnings can just leave it? or is there any ways to solve it too?

Never ignore warnings! They could be a sign of possible bad code and even a worse logic bug. So ALWAYS fix your warnings too.

You should always check and act upon the return ticket code for OrderSend().

 
Fernando Carreiro:

Never ignore warnings! They could be a sign of possible bad code and even a worse logic bug. So ALWAYS fix your warnings too.

You should always check and act upon the return ticket code for OrderSend().

alright thanks
 
Tan Zhi: alright thanks

You are welcome!