Sorry about that, when I copied it from your earlier post I didn't notice it was in a potentialy infinate while loop. Limit j to run just a few bars and see what happens. I would say your problem is not with EMPTY_VALUE, it is more likely because at no time do all 4 of your conditions run true at the same time in either set, therfore it never reaches break.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Sorry about that, when I copied it from your earlier post I didn't notice it was in a potentialy infinate while loop. Limit j to run just a few bars and see what happens. I would say your problem is not with EMPTY_VALUE, it is more likely because at no time do all 4 of your conditions run true at the same time in either set, therfore it never reaches break.