I'm not using (and don't recommend to use) the standard library for indicator development (and overall), so I can't say how to fix it while keeping the lib involved, but the situation that the graphs become blank means that your code execution goes into one of the if-s with return(0). Just check this under debug or by logging and find out under which conditions your code erroneusly falls into this branch.
Stanislav Korotky #: I'm not using (and don't recommend to use) the standard library for indicator development (and overall), so I can't say how to fix it while keeping the lib involved, but the situation that the graphs become blank means that your code execution goes into one of the if-s with return(0). Just check this under debug or by logging and find out under which conditions your code erroneusly falls into this branch.
Agreed, the standard library often gets in the way. Blank charts usually mean an unexpected return(0). Logging the conditions will help pinpoint the faulty branch quickly.
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.
I'm not using (and don't recommend to use) the standard library for indicator development (and overall), so I can't say how to fix it while keeping the lib involved, but the situation that the graphs become blank means that your code execution goes into one of the if-s with return(0). Just check this under debug or by logging and find out under which conditions your code erroneusly falls into this branch.