This code which should in theory filter 0s:

if(_data._sd > 0)

{

_data._q = (_data._sd);

} else

{

_data._q = 1;

}

Plot("Indicator "+_data.Symbol, "w", _data._q);

produces problems, and I don't have an idea how to get rid of it: