I was going to say you seem to be going about it the hard way, I would calculate the zones, or whatever the objects represent, in the EA and not draw the actual objects at all.
Well, I make the decisions as well taking into account the visual part of these rectangles b'cause it is a MTS yet. A month ago I didn't even know how the mql indi's code looks like so that's good sign that something is working. And thanks again for giving hints.
Not to pollute with new threads. For practicing purposes I've written a simple engulf code and trying to make an alert after engulf creation but when I switch TFs and go back to the TF with engulf the window pops up again. So how should that be coded properly to pop up only once?
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.
Not to pollute with new threads. For practicing purposes I've written a simple engulf code and trying to make an alert after engulf creation but when I switch TFs and go back to the TF with engulf the window pops up again. So how should that be coded properly to pop up only once?
p.s. code attached if needed. though very simple.