Objects filtering on property / via loop
-
Hello there,
I am testing on a support & resistance indicator at the moment. This one is drawing objects for several S&R zones.
It is no problem for me filtering those zones by object names.But, the indicator always applies name like e.g. Support_Zone_1 or Resistance_Zone_1 for the zone that is nearest to the price.
So the indicator also draws zones with different strength. Those dont differentiate in the name, but only the color of the object (rectangle drawn).So I like to filter that only when the price/candle enters a strong Resistance or Support Zone, it should enter a trade.
I tried to somehow filter by objects in loop, but I dont know how to define here the rule that if price or candle corsses above object with that color, enter a trade.
Can you help me out ?
Thanks
-
great, I figured it out

Just saw I can do that with the objects loop
-
In any case it's better if the indicator gives proper signals to it's buffers, but objects can be used too.