yes that is true, thanks for notice, I have not seen it before, ... but you can not get values which are not in list (for this you need to ask admin if he will add new functions here) ... it was only example which can be modified into many forms (for non list values)
note, that 0 is not always empty value (in metatrader) ... becuase default empty value for metatrader buffers is big integer number, or as EMPTY_VALUE ... but I think it can be set in indicator for another value using function SetIndexEmptyValue ...
https://docs.mql4.com/constants/namedconstants/otherconstants
this my next example show you nearest stochastic Candle ID which value is above 50 (count starts when current stochastic is below 50) ....
I dont have your indicator so I can not give you specific example for your problem ... but I am sure you can do it 😄
https://fxdreema.com/shared/6fcnY6k7
0_1490297540364_upload-0170d47e-f9db-4ddc-99cc-588eab3b3cdc