The values of x and x1 must be a barindex reference and not a condition. So you will need to store or calculate the value of barindex for the 080000 candle for example.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok