Forum

Unbalanced parentheses & unexpected end of program showing although i cant find a fault?

This is a simple MA cross EA im working on but have ran into a problem when compiling? If anyone can help that would be great! Lines: 15 and 45 are incorrect. #include <Trade/TRADE.mqh> CTrade trade; int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { } void

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: ***