Fix errors in below MT5 EA

 

...

Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code.

Code button in editor

Hover your mouse over your post and select "edit" ... 

...

 
Please don't post randomly in any section. Your topic has been moved to the section: Expert Advisors and Automated Trading
 
When requesting help with your code, please explain in detail the issue and provide log output or list of compile errors, and identify the corresponding lines with the errors.