joker TO SELECT OBJECT
-
Hi.
I am working with an ea.
in the drawing an object, a particular line.
When prefixing the name, the trend line is always named with the prefix "TREND" + n,
where n is a number, 1, ..... n
I wonder if there is any wildcard "$,%, & ..." to filter it.
In the photo, I put a condition:
if as == TREND value ??
TREND (is the prefix of my object) ??? (It would be, if there is a wildcard to tell you that I don't care if n is behind the prefix, or how many numbers there are)
I would like to discover that the name of my line TREND1 and later, TREND2 ........ TRENDn would detect them with this function.
What if there were more than one line drawn at the same time? would detect them all? -
@cesardefez You can try one single question mak '?'.
-
HI.
I try to explain myself.
When drawing a line, I named it line1
If I draw another line, it is named line 2
and so on,
when I want to read detect the line in my ea, I have to tell it what it's called.
example,
if bid crosses the line? down, sell.
where?, I don't care if it is 1,2,3, ........ n,
? I understand that it would be the wildcard (I mean?, it could be any sign, I don't know if it exists, or it can be done).
for example in mt4, to configure the fibo and I want to add the price at the fibo level, add% $. (view photo).

I don't know if I have managed to explain myself. -
@cesardefez Yes, now I understand. However, I'm not sure that is possible in fxDreema unless you use a custom code block. I'm not a programmer so I cannot be more helpful, sorry.

-
@cesardefez Hi Cesar! Exactly what you want to obtain in the end, is in case the approach can be otherwise. On the other hand in the forum "Tutorial by User" I think that this topic has been mentioned but for other purposes and perhaps you have more information. Regarding the first, if I don't understand what it is for, I can't help you.