The problem of time value
-
Hi,
I want to extract specific time values and draw lines there, but for some reason, the lines are always drawn at 0:00.
Also, shouldn't the label and value of the comment message be the same?
Is this a bug?
link text


-
@lotol Why do you exactly need the time value when what you are looking for is the highest price?
-
The above is a simple example to clarify the problem.
What I want to do is to extract the last three characteristic highs, identify the head and shoulder patterns, and create an EA that will mark them for recognition. -
@lotol Do not use any variable at the 'label' position. You need to write something there to be easily identified when plotted on chart lie 'time'. Additionally, you are using the same variable everywhere. You should create different variables for different elements (price, time, etc.).
-
Thanks for your advice.
This is what I really wanted to make. Check the Link.
link text
However, the result is not what I expected. I wanted to draw three lines at the peaks of the candles, but it didn't. I think the blocks are connected correctly and the variables settings are correct. I don't know what the problem is.

-
@lotol I recommedn you to store the value of the high price you are looking for in the variable instead of the time. That is what is mnessing the whole EA. Once you identified the hights price draw an arrow abow it instead of a vertical line.
-
Now I fully understand what you mean. You are right! I will do that way. Thank you very much for your help!
-
@lotol You are welcome.