Time as a STRING variable - wrong result
-
Hello people,
I´m trying to get the lowest price between two different time values. To do so, I'm adding the candle time value in a string variable this way.
The problem is that the value returned in the string variable is something different from the expected. I used the Comment block to plot both to show you:

Do you know what is happening? Maybe something that I'm missing? Maybe a bug?
Thank you very much for your help!
-
@afgmarkets why not try it by finding the candle id and than looping the id until the condition is met. With candle id the time appears correctly.
-
@afgmarkets The second value is the UNIX time value. That is the real value of time used in MT4, the first option is 'arranged' by the block code. I agree with vonmunchy, you should use candles instead.
-
Thank you very much guys for your help. I solved it with this new point of view!