Sorry, but you are using a 3rd party tool, to build an EA. That builder is known for creating very bad code. It also means you don't understand MQL coding at all, so you will not be able to know how to apply any advice we give you.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Sorry, but you are using a 3rd party tool, to build an EA. That builder is known for creating very bad code. It also means you don't understand MQL coding at all, so you will not be able to know how to apply any advice we give you.
Ok thankyou.