OPEN-SOURCE SCRIPT
已更新 Bulls v Bears

This script helps you identify the relative strength of bulls and bears in the market. It calculates the difference between the high and the moving average for bulls, and the difference between the moving average and the low for bears. Then it normalizes the values between -100 and 100 using the highest and lowest values of the last "bars back" periods. This allows you to compare the current strength of bulls and bears relative to their historical strength.
The output of the script is a colored column chart that represents the difference between the normalized bulls and bears values. If the chart is mostly green, it means the bulls are currently stronger than the bears, and vice versa for a mostly red chart. Additionally, the script provides bullish and bearish signals based on when the normalized bulls cross above or below the user-defined "Line Height" value.
You can use this script to help you identify potential trend changes in the market, as well as to confirm existing trends.
The output of the script is a colored column chart that represents the difference between the normalized bulls and bears values. If the chart is mostly green, it means the bulls are currently stronger than the bears, and vice versa for a mostly red chart. Additionally, the script provides bullish and bearish signals based on when the normalized bulls cross above or below the user-defined "Line Height" value.
You can use this script to help you identify potential trend changes in the market, as well as to confirm existing trends.
版本注释
Update NotesDual Calculation Modes:
Normalized Mode - Original v4 calculation (default, fully backward compatible, defval=120)
Raw Mode (NEW) - Dynamic thresholds that adapt to market volatility
Enhanced Options:
Added SMA and WMA alongside original EMA
NEW: "Bearish Zero Cross" alert (4 total alerts now)
Improved visualization and color customization
⚠️ EXISTING USERS
Nothing changes by default - all your current alerts and signals work exactly the same. The indicator defaults to Normalized mode (original v4 behavior).
🎯 UNDERSTANDING THE SIGNAL DOTS
The dots indicate EXTREME readings, not crossovers:
🟢 Bullish Dots = Bulls pressure exceeds threshold (default: 80)
Strong bullish momentum extreme
Can signal continuation in uptrends OR reversal warning in ranging markets
🟡 Bearish Dots = Bears pressure exceeds threshold (default: -80)
Strong bearish momentum extreme
Can signal continuation in downtrends OR reversal warning in ranging markets
Key Point: Don't use dots as standalone signals - combine with trend analysis and other confirmations.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。