comparing the value of the indicator at two diff times?
-
Hello all ,
could you please help me with this or tell me how to do it , if i am doing anything wrong here.
instead of by candle id i want to compare the value of the indicator by two time stamps. I want to comare the value of indicator at current time with value at (current time - 4 or x hours ). I have created two variables current time and ct-4 and 'fed' them accordingly.Can you check the two formula boxes and say if this is the right way .
Thank you so much .

-
Are all those variables of a 'string' type? if so, I see no problem with your blocks. However, I would prefer to use counting bars instead. That way you can simplify the whole thing up.
-
@l-andorrà thank you . yeah counting bars is easier but i wanted to comapre the value of the indicator at two different times withinn the same bar . say comare the value at 06:00 and 18:00 on a daily bar or at current time and 4 hours before curret time on within the daily bar .
-
You can do that just counting bars from a lower timeframe. Remember that you can always choose in which timeframe a condition block is to work on.