# How to correctly look at 20 day price channel breakout?

In my data I'm looking at 20 day highs and lows of a security. Hence the upper channel is the 20 day high and lower channel is the 20 day low. This is my graph of the 20day high/low (white band) and last prices (green band):

It seems that prices never break out of the price channel . I then decided to lag the price channel by 20 days:

Is this the correct way to go about looking at price channel breakouts? I'm trying to have something run in R to recognize when a breakout occurs. Consequently, I need a concrete arithmetic expression for when breakout occurs. However, this is really difficult in the first graph because the prices barely touch the channels.

• @Grade'Eh'Bacon - this question is about technical analysis and not quants, so it does totally belong here. Mar 28 '17 at 19:53
• @Grade'Eh'Bacon - from the quant site: "The Quantitative Finance Stack Exchange is intended for professionals and academics involved in quant modelling or trading. Good questions are focused on an actual problem you face in the course of your work as a quant or academic researcher. If you have a question about: •securities valuation •risk modelling •market microstructure •portfolio management •financial engineering •econometrics then you're in the right place to ask your question." Nothing about TA. Mar 28 '17 at 21:24
• @Grade'Eh'Bacon Thanks for the reply. As mentioned in another comment, I've asked a TA question on quant before and I've gotten that question closed immediately. Also, apologies for not making this clear but my first plot is actually a plot of last prices against the highest (and lowest) observed prices in the last 20 days, thus creating a 20 day price channel. So I'm comparing x day's prices to the highest/lowest price achieved in the last 20 days from x. It's not a plot of prices and the respective highs and lows observed on that day. Mar 29 '17 at 0:41
• @Nikitau TA+FT=not good. FT is very hard for beginners I would suggest you to try some stocks first. Jun 5 '17 at 19:48