Xiao4

BBI (4MA/4) overlay

The BBI is a kind of Bull & Bear Index, which famous among Chinese traders.

Calculating method:
BBI = (( MovingAverage({source}, {M1}) + MovingAverage({source}, {M2}) + MovingAverage({source}, {M3}) + MovingAverage({source}, {M4})) ÷ 4) secured in {resolution}
(source: wiki.mbalib.com/wiki/多空指数)

Configuretion:
{resolution}, {source} and {M*} are configurable. you could also feel free to use the default values.

People believe that If the price is above the BBI line, then this ETP is in the Bull market, and otherwise in the Bear market.

([^ ])+[^]*(?:[\S\s]*?\/\1
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
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?