error in MQ5 EA

 

I beg you friends.

can somebody guide me on  how to fix these 2 errors

OnTick function declared with wrong type or/and parameters 0 0

'(' - expressions are not allowed on a global scope RSIvsADX.mq5 26 5

unexpected end of program 1 1


 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 

Samuel Okoyeocha: can somebody guide me on  how to fix these 2 errors

OnTick function declared with wrong type or/and parameters 0 0

'(' - expressions are not allowed on a global scope RSIvsADX.mq5 26 5

unexpected end of program 1 1


If you need help with your code, the please show your code. Please use the CODE button (Alt-S) when inserting code.

Code button in editor


If however, your code was generated by ChatGPT, then we can't help you.

ChatGPT (or other A.I.) generates horrible code, mixing MQL4 and MQL5. Please use the Freelance section for such requests — https://www.mql5.com/en/job

 
Samuel Okoyeocha:

I beg you friends.

can somebody guide me on  how to fix these 2 errors

OnTick function declared with wrong type or/and parameters 0 0

'(' - expressions are not allowed on a global scope RSIvsADX.mq5 26 5

unexpected end of program 1 1


Well remove the "("