Select Object By Name - Several Objects
-
Hi,
If I need to check the property of several objects (for example the colors), can I use several blocks "Select Object by Name" and "check color" one after another, like this?
https://fxdreema.com/shared/kscutfnAb
Thanks!
-
when it is few objects (like 10 or so) than I think it is better to check like your example ... but if it is 100 objects, than something in loop:
https://fxdreema.com/shared/d58Pplmmc
or maybe simplier solution exist, I dont know
... but object name in loop (prefix) must differ from "fx" because "fx" (as fxd) is used by default fxdreema objects ... -
Thank you for your answer.
I must be checking around 10 or so objects, so I'll keep it simple (not use loop).
Also, I can't use loop because I can't change the object's names (I dont have the code for the indicators).
Thanks!
-
Well, each object has different name and you can't have 2 or more objects with the same name. So if you know one name, you can only get/set information to only 1 particular object, if exists. If you want to do something else over multiple objects, then you need to find those objects.
-
I have another question on this same subject:
I have a News Indicator, like this: https://ibb.co/fCxqfQ
The arrows (red dots) on the chart shows the time at which the News will take place. I can select the object, but can't find a way to tell my EA to take some action at the correct time.
The indicator does not have an output, so I can't use a condition block to set "Price is > Indicator". The only thing I can do is select the object on chart, but the object exists 1 week ahead of time.
How to select the object and tell my EA to take action (for example close opened trades or open pending orders) only when the News (red dots) are at the correct bar (current time)?
Thanks!
-
You tried to get Time 1 of these dots?
-
@fxDreema No, I haven't tried. I don't know how to do it

-
Hello, I have an indicator named candle-patterns-indicator. which has no buffer. And it doesn't give an object. How to find the green and red signs of this indicator in FX Dreama
-
@mehrdad-zaiemi This is the second thread you use for the exact same question. Please don't duplicate questions.