blindfreddy

Breakdown Oscillator

This is an indicator I made, based on the observation that the longer the price action hugs the bottom bollinger band, the greater the danger of a breakdown occurring (price decline). Essentially its a moving average of the difference between close price and the bottom bollinger band, divided by the bottom bollinger band; I like to use 1.5 standard deviations for the 20 day bollinger band. When it crosses below zero there is increased danger of a breakdown, although of course it could turn right around and go up again. In fact if it does turn around sharply from near zero it can be a good time to buy in the context of a pullback within an uptrend. I also have included the 'slope factor' which makes the indicator more negative based on the rate of downward movement of the bollinger moving average (set to 0 to omit this modification). The indicator can be used just for exits or can be used for entry signals when crossing over the green bar if desired. In the example chart you can see the price hitting the lower band or crossing below the 50dMA plenty of times on the way up while the indicator says to hold tight. When the breakdown comes its after a prolonged period of low volatility (band squeeze) on the lower side of the moving average so the signal comes quickly - they won't all be this good of course. This indicator can also be used to help spot potential shorting candidates.
This indicator also works well on weekly charts; I like the 1 standard deviation with 16 to 24 week long period, 6 to 10 week short period and 30 buy level. Your mileage may vary, please do your own research.

오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
study("Breakdown Oscillator")  // by BlindFreddy
tdiffperiod=input(title="Short Period",type=integer,defval=10,minval=1)
tbbperiod=input(title="Boll. Band Period",type=integer,defval=20,minval=1)
ndevs=input(title="No. devs",type=float,defval=1.5,minval=0)
tbuy=input(title="Buy level",type=float,defval=20)
tsell=input(title="Sell level",type=float,defval=0)
slopefac=input(title="Slope factor",type=float,defval=2)
tSMA=sma(close,tbbperiod)
//bottom bollinger band:
tbottband = tSMA - ndevs * stdev(close, tbbperiod)
tdiff=close-tbottband +slopefac*(tSMA-tSMA[1])
tEMA=ema(tdiff,tdiffperiod)
tBreakdown = 100*tEMA/tbottband
h1=hline(tbuy,title='Buy Level',color=green,linestyle=dashed)
h2=hline(tsell,title='Sell Level',color=red,linestyle=dashed)
plot(tBreakdown)