I am unsure what you are looking for - sounds like you want to use a Bollinger Band indior?

BB