At a guess I would say that it is because DAYS is a potentially ever moving variable so in the middle of the loop it could add another day on before it is finished the loop and so the possibility is that the loop could never end. Plus DAYS is the total number of days since 1900 and so you will never reach the end of the loop because you won’t have enough bars on a chart to test that.
Wow! “days” is function in ProRealTime. in my computer Mac it always appear in color black like just a variable .
I did think it was strange that you were trying to use it! You should report the colour issue on Mac’s to PRT so they might fix it to avoid future confusion for others.
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