There is a tiny example buried in the docs for the suspended function that may help. Please update this post if this works for you or not.

// don't shift series outside market hours
if(suspended()&8) set(NOSHIFT); else set(NOSHIFT|OFF);