Pufferman7777

2. [pufferman] - Key Bars with auto halfline

The idea is to identify significantly large candles on high volume. These candles frequently offer significant context to the subsequent candles.

The indicator marks unusually large candles with certain body to wick & tail ratio that has above average volume. These candles are marked bullish and bearish (green or red respectively). It is recommended that these colors are a higher tier than the regular candles to denote significance. See chart for reference. regular candles are blue and yellow while key bars are marked green and red.

the half value of the spread (open and close) of the candle is significant level. you want the half line held in whatever direction your trend is. I.e. if a bullish key bar, you want the price to hold above the half line of the key bar. this is the type of price action you want to see in a trending move. Reverse for bearish key bars.

This indicator work on all time frames and will identify keybars according to he users metrics on all time frames. However, the most two recent daily keybar half line is projected onto all intraday timeframes to allow the user quickly see significant daily levels on the intraday time frames.

The indicator is based on moving average of the atr of the spread of the candle and tail and wick vs spread size ratio to determine unusually large bodied candles. The candle also have to have above average volume. Default average is the 10 session MA.

I use blue and yellow regular candles. and so the keybars are colored red and green. you may need to change this. In case the user uses other candle color overlays, the keybars are also denoted via a purple square below the candle.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?