See if this works for you ... I threw in the alert code but didn't test it. It might alert like crazy as I didn't put a flipflop in it.
I like CJA Signal Bars. Free indicator with source included on older versions. Password is free_at_tsd