There was someone trying to write code to do this sometime in the last couple months. I can't find the thread but I am pretty sure they got it sorted out. Sorry I couldn't be more help, but the thread is on the forum somewhere. Maybe someone else remembers. I think they were complicating things by using multiple time frames until someone suggested the cleaner HH / LL solution.