This code that you pasted here, should not be inside init(){} function but inside start(){} function. Reposition it and try again. Hope to see your next post full of smilies.
forexCoder:
This code that you pasted here, should not be inside init(){} function but inside start(){} function. Reposition it and try again. Hope to see your next post full of smilies.
The symbol is EUR/USD. As you can see from the attachment, no orders get executed. Let me know if I haven't attached the correct log -- still pretty new at this.
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.
Oh gods, I'm so stupid.
Dude, fatal mistake from beginning :)))
This code that you pasted here, should not be inside init(){} function but inside start(){} function. Reposition it and try again. Hope to see your next post full of smilies.
This code that you pasted here, should not be inside init(){} function but inside start(){} function. Reposition it and try again. Hope to see your next post full of smilies.
I told you
Seriously, thanks for all the help.
The symbol is EUR/USD. As you can see from the attachment, no orders get executed. Let me know if I haven't attached the correct log -- still pretty new at this.
Init is executed once, at the beginning of operations, normally to get itself ready.
Start is executed once for each received tick, so this is your main function body.
@WHR, yes you did :P