unexpected end of program and unbalanced paratheses

 

I am fairly new to coding and my code brings out this 2 errors, unexpected end of program and unbalanced paratheses, can someone please help

this is my code:

<Incorrectly posted code deleted>

Documentation on MQL5: Trade Functions / PositionGetInteger
Documentation on MQL5: Trade Functions / PositionGetInteger
  • www.mql5.com
PositionGetInteger - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
  1. Please use (& edit your post!) the code button </> (or Alt+s) if you present code..
  2. Control each opening {  that is it closed by a } - it's a must!
 
  1. Use the code button.
  2. You have no closing brace before the start of OnTick.
 
Why do moderators not delete this kinds of posts?
 
Tobias Johannes Zimmer #:
Why do moderators not delete this kinds of posts?

That would be extremely aggresive .

They can edit the posts but that must be extremely annoying . 

So they are stuck between the new user not knowing and having to tell them (so its done once per new user) or editing it themselves and the user repeating it.

 
Tobias Johannes Zimmer #:
Why do moderators not delete this kinds of posts?

It would not be fair on the people who have replied if the topic is deleted.

If the topic is deleted, the OP cannot find his/her post and will often just start a new topic and will again post code incorrectly. This would be annoying for those who have replied to the topic with instructions of how to post code properly.

Reason: