Bear Bull Ratio (BBR)

This indicator calculates the ratio of bearish to bullish candles over a certain window of time. It does this by keeping track of the number or distance (depending on the "Enable True Range Mode" input) between the high and low prices of bullish and bearish candles, respectively, and then dividing the total distance of bullish candles by the sum of the distances of both bullish and bearish candles. The resulting ratio is then plotted on the chart as a percentage. The indicator also plots a smoothed version of the ratio using a weighted moving average and the average of the ratio over the entire length of the chart, for both the "True Range Mode" and "Normal Mode".
typo fix


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