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.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?