How to use Rectangle Object from SnR Indicator?
-
Hello experts. Attached the indicator. 0_1610686788446_fxr_sr_zones.ex4
Is it possible to use only the rectangle object on chart defined by colors only?
Without defining the object name? The problem here is defining the Name of each object.
Unlike @miro1360 's project, the names can be used to separate between object for Support / Resistance.
Can I still use the Price Level from the rectangle object?

-
@biztet I'm not a programmer, but I'm afraid those rectagles are not bufferes but they are objects. However, I can't see how to identify them except for the number after the SSSR name. But not sure, though.
-
Yes @l-andorrà , i can only use the object. But identifying the object is my problem right now.
From miro's project, the objects name still can be defined, i've seen it. But now i'm trying to use this indicator for the same purpose. It looks simpler if we can just identify the rectangle object using color. Just don't know how to to it. @fxdreema-1 ?
-
Anybody knows this?
-
@biztet I guess the only persona who could help rught now is moro himself. Sadly I can't modify any indicator's code nor create the necessary custom code to it.
-
It's okay @l-andorrà . Thanks a lot.
-
@biztet Hi! This old miro's tutorial can help you https://fxdreema.com/forum/topic/4209/tutorial-07-read-prices-from-indicator-objects
you already saw? -
Yes @ambrogio . The only problem is I couldn't differentiate between object for support and resistance because of the object name. I'm trying the indicator attached because it seems like simpler to define the SnR by the rectangular object with only two colors. Blue for support, Red for resistance.
-
@biztet I found this way, it could be useful: when the price touches the lower or upper side of the rectangle ==> do something.


-
Thanks @ambrogio , nice try. But how can we know which rectangle object? Because if you look at the indi that miro use, we can differentiate with the prefix from the object name,
SSSR #R for Resistance / SSSR #S for Support.The one i'm trying to use is all SSSR#(numbers).
Yes we can use object by level but that doesn't define whether the object is Support or Resistance. If only we could use it like general object, as long the rectangle is Blue, it is a Support and Red is Resistance. -
@biztet i maked you an example "for each object" selecting by colour "crimson" for resistance (not Red). The same should be done for support "for each object" RoyalBlue (not Blue).
-
Thanks @ambrogio . I'll test it after work.

-
Hi @ambrogio . I've been testing for few hours, quite interesting. But still a little confused with the Price 1/2/3 in the coordinates Block. Might be easier if I can use the crossing Price Level like Fibos. I see you pick the color in the input setting, not in the buffer color, and that makes it work.
-
And so with the logic, i want to do like this.

-
@biztet We cannot detect the price level of the most distant rectangles, because we do not have the name of the objects. The system I used provides that the price touches the lower level of the rectangle based on color. It may be that someone in the forum with more knowledge can do it. Please note that these supports and resistances are always moving, I suggest you make a backtest of the indicator so you can see how it works.

-
Yes @ambrogio , i'm aware of the movement of this indicator. Since you have showed me how to use the colored object, i might have some other indicator to test. Thanks a lot. But for this indicator, i still cannot identify the level or Price 1/2/3.