Unexpected end of program and unbalanced program?

 

Hi guys, Im new to MQL5 but havent had problems until now. I have coded a simple MA cross but it wont compile?

'Unexpected end of program & unbalanced parenthesis' on lines 14 and 50


This is the code:

***

Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
  • www.mql5.com
Symbol Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
EMcgeown71:

Hi guys, Im new to MQL5 but havent had problems until now. I have coded a simple MA cross but it wont compile?

'Unexpected end of program & unbalanced parenthesis' on lines 14 and 50


This is the code:

***

Please insert the code correctly: when editing a message, press the button        Codeand paste your code into the pop-up window.
 
EMcgeown71:

Hi guys, Im new to MQL5 but havent had problems until now. I have coded a simple MA cross but it wont compile?

'Unexpected end of program & unbalanced parenthesis' on lines 14 and 50


This is the code:

***

You left some function opened without closing brackets, or without closing parenthesis.