Code errors

 
Hi would anyone be able to assist with the below errors please?
 
Adam Caldow: Hi would anyone be able to assist with the below errors please?

If you need help with your code, then show your code using the CODE button (Alt-S) when inserting code or attach the full source code file.

Code button in editor

Describe the issue in detail and identify the lines to which the errors refer.

Also, should it be the case that you are using ChatGPT to generate code, then unfortunately we will not be able to help you.

ChatGPT generates horrendous code, and any advice we give, you may not understand nor be able to implement due to not being able to code it yourself.

By the way, all the errors you have shown are because you are using MQL4 code in a MQL5 program—a common symptom of using ChatGPT.