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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue