OPEN-SOURCE SCRIPT
Bull Bear Indicator

# Bull Bear Indicator - TradingView Script Description
## Overview
The Bull Bear Indicator is a powerful visual tool that instantly identifies market sentiment by coloring all candlesticks based on their position relative to a moving average. This indicator helps traders quickly identify bullish and bearish market conditions at a glance.
## Key Features
### 🎨 Visual Bull/Bear Identification
- **Green Candles**: Price is at or above the moving average (Bullish condition)
- **Red Candles**: Price is below the moving average (Bearish condition)
- Complete candle coloring including body, wicks, and borders for maximum clarity
### 📊 Flexible Moving Average Options
- **MA Type**: Choose between Simple Moving Average (MA) or Exponential Moving Average (EMA)
- **Timeframe**: Select Weekly or Daily timeframe for the moving average calculation
- **Customizable Period**: Adjust the MA/EMA period (default: 50)
### 📈 Smooth Moving Average Line
- Displays a smooth blue moving average line on the chart
- Automatically adapts to your selected timeframe and MA type
- Provides clear visual reference for trend identification
## How It Works
The indicator calculates a moving average (MA or EMA) based on your selected timeframe (Weekly or Daily). It then compares the current price to this moving average:
- **Bull Market**: When price ≥ Moving Average → Candles turn **GREEN**
- **Bear Market**: When price < Moving Average → Candles turn **RED**
## Configuration Options
1. **MA Type**: Choose "MA" for Simple Moving Average or "EMA" for Exponential Moving Average
2. **Timeframe**: Select "Weekly" for weekly-based MA or "Daily" for daily-based MA
3. **MA Period**: Set the number of periods for the moving average calculation (default: 50)
## Use Cases
- **Trend Identification**: Quickly identify overall market trend direction
- **Entry/Exit Signals**: Use color changes as potential entry or exit signals
- **Multi-Timeframe Analysis**: Combine with different chart timeframes for comprehensive analysis
- **Visual Clarity**: Reduce chart clutter while maintaining essential trend information
## Best Practices
- Use Weekly MA for longer-term trend identification
- Use Daily MA for shorter-term trend analysis
- Combine with other technical indicators for confirmation
- Adjust the MA period based on your trading style and timeframe
## Technical Details
- Built with Pine Script v6
- Overlay indicator (displays on main chart)
- Optimized for performance
- Compatible with all TradingView chart types
---
**Note**: This indicator is for educational and informational purposes only. Always conduct your own analysis and risk management before making trading decisions.
## Overview
The Bull Bear Indicator is a powerful visual tool that instantly identifies market sentiment by coloring all candlesticks based on their position relative to a moving average. This indicator helps traders quickly identify bullish and bearish market conditions at a glance.
## Key Features
### 🎨 Visual Bull/Bear Identification
- **Green Candles**: Price is at or above the moving average (Bullish condition)
- **Red Candles**: Price is below the moving average (Bearish condition)
- Complete candle coloring including body, wicks, and borders for maximum clarity
### 📊 Flexible Moving Average Options
- **MA Type**: Choose between Simple Moving Average (MA) or Exponential Moving Average (EMA)
- **Timeframe**: Select Weekly or Daily timeframe for the moving average calculation
- **Customizable Period**: Adjust the MA/EMA period (default: 50)
### 📈 Smooth Moving Average Line
- Displays a smooth blue moving average line on the chart
- Automatically adapts to your selected timeframe and MA type
- Provides clear visual reference for trend identification
## How It Works
The indicator calculates a moving average (MA or EMA) based on your selected timeframe (Weekly or Daily). It then compares the current price to this moving average:
- **Bull Market**: When price ≥ Moving Average → Candles turn **GREEN**
- **Bear Market**: When price < Moving Average → Candles turn **RED**
## Configuration Options
1. **MA Type**: Choose "MA" for Simple Moving Average or "EMA" for Exponential Moving Average
2. **Timeframe**: Select "Weekly" for weekly-based MA or "Daily" for daily-based MA
3. **MA Period**: Set the number of periods for the moving average calculation (default: 50)
## Use Cases
- **Trend Identification**: Quickly identify overall market trend direction
- **Entry/Exit Signals**: Use color changes as potential entry or exit signals
- **Multi-Timeframe Analysis**: Combine with different chart timeframes for comprehensive analysis
- **Visual Clarity**: Reduce chart clutter while maintaining essential trend information
## Best Practices
- Use Weekly MA for longer-term trend identification
- Use Daily MA for shorter-term trend analysis
- Combine with other technical indicators for confirmation
- Adjust the MA period based on your trading style and timeframe
## Technical Details
- Built with Pine Script v6
- Overlay indicator (displays on main chart)
- Optimized for performance
- Compatible with all TradingView chart types
---
**Note**: This indicator is for educational and informational purposes only. Always conduct your own analysis and risk management before making trading decisions.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。