Please build a new indicator

Please build a new indicator to alert when price takes previous week/month high or low.