Any ideas why my custom indicators are blank when I start the terminal in the morning? - page 4

 
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.