There is something simple I am overlooking, any advice?
-
https://fxdreema.com/shared/ZcyCUyb0b

That's the link to one part of my project (you can ignore the single blocks). The first two areas work great. The third area is where I am having trouble.
Here is what I am trying to do:
First Area: detects the first touch of the 21 high indicator (draw red arrow)
Second Area: detects the first opposite touch of the 21 low indicator (counting back from the day the first touch happens) (draw blue arrow)
Third Area (where I am having trouble): I want to identify where the "trend began" from the first opposite touch (from the second area), sort of like thinking, "if there was a skier, where would he START to go down to hit the first opposite touch (from the second area). (draw a green arrow) (I placed a red "X" over the candle where I want the candle ID and the value of the blue line, which won't necessarily always be touched by part of the candle).As I said, the first two areas work great (you can see the arrows with thumbs up and the displayed data), but for the life of me I cannot the third area to work. Any ideas? I'm thinking it is something I am doing wrong trying to get the value of the indicator. Any advice would be appreciated, as I have been spinning my wheels for days on something so simple, I just know it.
-
Did you check if the values of those variables involved are correct
-
Hi @l'andorra, yes I did, and I have been tinkering around trying to simplify things. I finally have the third candle ID identified, but it won't give me the value of my indicator using that candle ID.
See block 45 (first variable). Isn't this how I would get the value of the indicator? We can talk Wednesday.

https://fxdreema.com/shared/otbKJ3dQb -
As far as I see it, you are storing those values for the indicator on the daily timeframe and they are supposed to be different candle IDs. Why do you say it doesn't get the value of that candle ID? What does it get instead?
-
@l-andorrà I don't even know what I did but I am at least getting the candle ID number, but now it won't show the value of the indicator on that candle ID.
https://fxdreema.com/shared/HclKs9PPc

-
Definitely you need to reset the variables. Additionally, you don't need to check that info every single tick. You just need to to it once per day at the beginning of the day.