Check if price crosses lines (supports/resistences)
-
Hello,
I want to create an EA that checks if the price crosses some horizontal lines and then open/close trades. There are a lot of horizontal lines and I want not to have to rename all of them.
How can I do it? I’ve been trying with -For each object- but it does not work as I supposed it should. It skips some lines and does not open nor close the trades as it should.Any idea?
Than you,
David -
So there are 2 main ways to select objects - by name (because each object has unique name) or by searching/filtering (loading each object and checking if it is what we want). The first way you can do in "Condition" directly. The second way is with using this "For each Object" block. I guess that you can't use the first way, so you should use "For each Object". I don't know why it is not working for you, but if you can give me more details and even a small project for an example... I need to know what you are doing exactly and what the goal is, so then I can test it here and see what is the problem.