PROTECTED SOURCE SCRIPT
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.
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
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
([^ ])+[^]*(?:[\S\s]*?\/\1
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.