I’ve been banging my head against my desk trying to make a non-repainting zigzag on tick by tick data without the inbuilt function. I couldn’t find the bug in my code so I went right down to see exactly what values are returned by barindex[] and close[]. I don’t know if this is a known issue but it seems that barindex[], close[] and the related functions are not updating correctly. To test this I used the following code:
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