Hello! So, I have Expert Advisor that doesn't work and gives me those two errors: "Unexpected end of program" and "Unbalanced Parentheses".

 

...

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" ... 

...

 
  1. Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
          General rules and best pratices of the Forum. - General - MQL5 programming forum #25 (2019)
              Messages Editor
          Forum rules and recommendations - General - MQL5 programming forum (2023)

  2. Do not post code that will not compile.

    1. Your function is missing the closing bracket.
    2.       if(positive && !positive[1])
      This is non-sense. Either the variable is an array (positive[1]) or it is not (positive). It can't be both.
 
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893