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精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。