Expert Advisor Shows Error!

Abbas_Vohra

Newbie
May 27, 2020
1
0
1
India
Greetings to all!

Lately I've been trying to create an Expert Advisor for myself. However while coding for the same; I've been receiving errors which i have failed to understand and rectify as i lack expertise in the language .I've attached the screenshots for the same below.Although I understand it may not be accurate so if any other errors are noticed please inform me.If someone could provide some tips or be willing to aid in rectification of the code ; It'd be of great help.

Error received : Errors.png
Error 2 : Errors 2.png
Error 3 :Errors 3.png

Thanks!
 

Enivid

Administrator
Staff member
Nov 30, 2008
13,574
603
144
Odessa
www.earnforex.com
You have two problems in this code:
1. You are trying to code an expert advisor but you tell MetaEditor that it is an indicator with the lines like this:
MQL4:
#property indicator_buffers 2
#property indicator_chart_window
Expert advisors don't have indicator buffers and don't display in any window.

2. Like the errors log is telling you, you have unbalanced parentheses. For every opened curly bracket, you need to put a matching closing curly bracket.